Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: sky/engine/public/web/WebView.h

Issue 925933004: Prune HitTestResult and stop special-casing links. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/public/web/WebHitTestResult.h ('k') | sky/engine/public/web/WebViewClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #include "../platform/WebColor.h" 34 #include "../platform/WebColor.h"
35 #include "../platform/WebString.h" 35 #include "../platform/WebString.h"
36 #include "../platform/WebVector.h" 36 #include "../platform/WebVector.h"
37 #include "sky/engine/public/web/WebPageVisibilityState.h" 37 #include "sky/engine/public/web/WebPageVisibilityState.h"
38 #include "sky/engine/public/web/WebWidget.h" 38 #include "sky/engine/public/web/WebWidget.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class WebFrame; 42 class WebFrame;
43 class WebFrameClient; 43 class WebFrameClient;
44 class WebHitTestResult;
45 class WebSettings; 44 class WebSettings;
46 class WebSpellCheckClient; 45 class WebSpellCheckClient;
47 class WebViewClient; 46 class WebViewClient;
48 struct WebPoint; 47 struct WebPoint;
49 48
50 class WebView : public WebWidget { 49 class WebView : public WebWidget {
51 public: 50 public:
52 // Initialization ------------------------------------------------------ 51 // Initialization ------------------------------------------------------
53 52
54 // Creates a WebView that is NOT yet initialized. You will need to 53 // Creates a WebView that is NOT yet initialized. You will need to
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 117
119 // The ratio of the current device's screen DPI to the target device's scree n DPI. 118 // The ratio of the current device's screen DPI to the target device's scree n DPI.
120 virtual float deviceScaleFactor() const = 0; 119 virtual float deviceScaleFactor() const = 0;
121 120
122 // Sets the ratio as computed by computePageScaleConstraints. 121 // Sets the ratio as computed by computePageScaleConstraints.
123 virtual void setDeviceScaleFactor(float) = 0; 122 virtual void setDeviceScaleFactor(float) = 0;
124 123
125 124
126 // Data exchange ------------------------------------------------------- 125 // Data exchange -------------------------------------------------------
127 126
128 // Do a hit test at given point and return the HitTestResult.
129 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0;
130
131 // Retrieves a list of spelling markers. 127 // Retrieves a list of spelling markers.
132 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0; 128 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0;
133 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) = 0; 129 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) = 0;
134 130
135 131
136 // Developer tools ----------------------------------------------------- 132 // Developer tools -----------------------------------------------------
137 133
138 virtual void setShowPaintRects(bool) = 0; 134 virtual void setShowPaintRects(bool) = 0;
139 135
140 // Visibility ----------------------------------------------------------- 136 // Visibility -----------------------------------------------------------
(...skipping 11 matching lines...) Expand all
152 148
153 // Testing functionality for TestRunner --------------------------------- 149 // Testing functionality for TestRunner ---------------------------------
154 150
155 protected: 151 protected:
156 ~WebView() {} 152 ~WebView() {}
157 }; 153 };
158 154
159 } // namespace blink 155 } // namespace blink
160 156
161 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ 157 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebHitTestResult.h ('k') | sky/engine/public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698