layout/inspector/inCSSValueSearch.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #ifndef __inCSSValueSearch_h__
michael@0 6 #define __inCSSValueSearch_h__
michael@0 7
michael@0 8 #include "inICSSValueSearch.h"
michael@0 9
michael@0 10 #include "nsCOMPtr.h"
michael@0 11 #include "nsString.h"
michael@0 12 #include "nsIDOMDocument.h"
michael@0 13 #include "inISearchObserver.h"
michael@0 14 #include "nsTArray.h"
michael@0 15 #include "nsCSSProps.h"
michael@0 16
michael@0 17 class nsIDOMCSSStyleSheet;
michael@0 18 class nsIDOMCSSRuleList;
michael@0 19 class nsIDOMCSSStyleRule;
michael@0 20 class nsIURI;
michael@0 21
michael@0 22 class inCSSValueSearch : public inICSSValueSearch
michael@0 23 {
michael@0 24 public:
michael@0 25 NS_DECL_ISUPPORTS
michael@0 26 NS_DECL_INISEARCHPROCESS
michael@0 27 NS_DECL_INICSSVALUESEARCH
michael@0 28
michael@0 29 inCSSValueSearch();
michael@0 30 virtual ~inCSSValueSearch();
michael@0 31
michael@0 32 protected:
michael@0 33 nsCOMPtr<inISearchObserver> mObserver;
michael@0 34 nsCOMPtr<nsIDOMDocument> mDocument;
michael@0 35 nsTArray<nsAutoString *>* mResults;
michael@0 36 nsCSSProperty* mProperties;
michael@0 37 nsString mLastResult;
michael@0 38 nsString mBaseURL;
michael@0 39 nsString mTextCriteria;
michael@0 40 int32_t mResultCount;
michael@0 41 uint32_t mPropertyCount;
michael@0 42 bool mIsActive;
michael@0 43 bool mHoldResults;
michael@0 44 bool mReturnRelativeURLs;
michael@0 45 bool mNormalizeChromeURLs;
michael@0 46
michael@0 47 nsresult InitSearch();
michael@0 48 nsresult KillSearch(int16_t aResult);
michael@0 49 nsresult SearchStyleSheet(nsIDOMCSSStyleSheet* aStyleSheet, nsIURI* aBaseURI);
michael@0 50 nsresult SearchRuleList(nsIDOMCSSRuleList* aRuleList, nsIURI* aBaseURI);
michael@0 51 nsresult SearchStyleRule(nsIDOMCSSStyleRule* aStyleRule, nsIURI* aBaseURI);
michael@0 52 nsresult SearchStyleValue(const nsAFlatString& aValue, nsIURI* aBaseURI);
michael@0 53 nsresult EqualizeURL(nsAutoString* aURL);
michael@0 54 };
michael@0 55
michael@0 56 // {4D977F60-FBE7-4583-8CB7-F5ED882293EF}
michael@0 57 #define IN_CSSVALUESEARCH_CID \
michael@0 58 { 0x4d977f60, 0xfbe7, 0x4583, { 0x8c, 0xb7, 0xf5, 0xed, 0x88, 0x22, 0x93, 0xef } }
michael@0 59
michael@0 60 #endif // __inCSSValueSearch_h__

mercurial