summaryrefslogtreecommitdiffstats
path: root/layout/inspector/inCSSValueSearch.h
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /layout/inspector/inCSSValueSearch.h
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/inspector/inCSSValueSearch.h')
-rw-r--r--layout/inspector/inCSSValueSearch.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/layout/inspector/inCSSValueSearch.h b/layout/inspector/inCSSValueSearch.h
new file mode 100644
index 000000000..3741fd331
--- /dev/null
+++ b/layout/inspector/inCSSValueSearch.h
@@ -0,0 +1,60 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef __inCSSValueSearch_h__
+#define __inCSSValueSearch_h__
+
+#include "inICSSValueSearch.h"
+
+#include "nsCOMPtr.h"
+#include "nsString.h"
+#include "nsIDOMDocument.h"
+#include "inISearchObserver.h"
+#include "nsTArray.h"
+#include "nsCSSProps.h"
+
+class nsIDOMCSSStyleSheet;
+class nsIDOMCSSRuleList;
+class nsIDOMCSSStyleRule;
+class nsIURI;
+
+class inCSSValueSearch final : public inICSSValueSearch
+{
+public:
+ NS_DECL_ISUPPORTS
+ NS_DECL_INISEARCHPROCESS
+ NS_DECL_INICSSVALUESEARCH
+
+ inCSSValueSearch();
+
+protected:
+ virtual ~inCSSValueSearch();
+ nsCOMPtr<inISearchObserver> mObserver;
+ nsCOMPtr<nsIDOMDocument> mDocument;
+ nsTArray<nsAutoString *>* mResults;
+ nsCSSPropertyID* mProperties;
+ nsString mLastResult;
+ nsString mBaseURL;
+ nsString mTextCriteria;
+ int32_t mResultCount;
+ uint32_t mPropertyCount;
+ bool mIsActive;
+ bool mHoldResults;
+ bool mReturnRelativeURLs;
+ bool mNormalizeChromeURLs;
+
+ nsresult InitSearch();
+ nsresult KillSearch(int16_t aResult);
+ nsresult SearchStyleSheet(nsIDOMCSSStyleSheet* aStyleSheet, nsIURI* aBaseURI);
+ nsresult SearchRuleList(nsIDOMCSSRuleList* aRuleList, nsIURI* aBaseURI);
+ nsresult SearchStyleRule(nsIDOMCSSStyleRule* aStyleRule, nsIURI* aBaseURI);
+ nsresult SearchStyleValue(const nsAFlatString& aValue, nsIURI* aBaseURI);
+ nsresult EqualizeURL(nsAutoString* aURL);
+};
+
+// {4D977F60-FBE7-4583-8CB7-F5ED882293EF}
+#define IN_CSSVALUESEARCH_CID \
+{ 0x4d977f60, 0xfbe7, 0x4583, { 0x8c, 0xb7, 0xf5, 0xed, 0x88, 0x22, 0x93, 0xef } }
+
+#endif // __inCSSValueSearch_h__