summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/content/content_detector.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-05-24 19:18:49 -0700
committerJohn Reck <jreck@google.com>2012-05-24 19:20:37 -0700
commit917ab176521f67983bd1c7cdb99f55ce8fc412f5 (patch)
tree35b90c6fe72f94009df9646f7b3c70804591ee61 /Source/WebKit/android/content/content_detector.h
parent91f41286e33b387859e4841711f3054bcf75c748 (diff)
downloadexternal_webkit-917ab176521f67983bd1c7cdb99f55ce8fc412f5.zip
external_webkit-917ab176521f67983bd1c7cdb99f55ce8fc412f5.tar.gz
external_webkit-917ab176521f67983bd1c7cdb99f55ce8fc412f5.tar.bz2
Support content detection metatags
Bug: 6558360 Change-Id: Idf02946306119755e3284b74f20ea5566f68d8ee
Diffstat (limited to 'Source/WebKit/android/content/content_detector.h')
-rw-r--r--Source/WebKit/android/content/content_detector.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebKit/android/content/content_detector.h b/Source/WebKit/android/content/content_detector.h
index 041cbc9..270928d 100644
--- a/Source/WebKit/android/content/content_detector.h
+++ b/Source/WebKit/android/content/content_detector.h
@@ -44,6 +44,10 @@ namespace WebKit {
class WebHitTestInfo;
}
+namespace WebCore {
+class Settings;
+}
+
// Base class for text-based content detectors.
class ContentDetector {
public:
@@ -82,6 +86,9 @@ class ContentDetector {
size_t* start_pos,
size_t* end_pos) = 0;
+ virtual bool IsEnabled(const WebKit::WebHitTestInfo& hit_test) = 0;
+ WebCore::Settings* GetSettings(const WebKit::WebHitTestInfo& hit_test);
+
// Extracts and processes the text of the detected content.
virtual std::string GetContentText(const WebKit::WebRange& range) = 0;