OLD | NEW |
---|---|
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 15 matching lines...) Expand all Loading... | |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebView_h | 31 #ifndef WebView_h |
32 #define WebView_h | 32 #define WebView_h |
33 | 33 |
34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
35 #include "../platform/WebDisplayMode.h" | 35 #include "../platform/WebDisplayMode.h" |
36 #include "../platform/WebFocusType.h" | |
36 #include "../platform/WebPageVisibilityState.h" | 37 #include "../platform/WebPageVisibilityState.h" |
37 #include "../platform/WebString.h" | 38 #include "../platform/WebString.h" |
38 #include "../platform/WebVector.h" | 39 #include "../platform/WebVector.h" |
39 #include "WebDragOperation.h" | 40 #include "WebDragOperation.h" |
40 #include "WebHistoryCommitType.h" | 41 #include "WebHistoryCommitType.h" |
41 #include "WebHistoryItem.h" | 42 #include "WebHistoryItem.h" |
42 #include "WebWidget.h" | 43 #include "WebWidget.h" |
43 | 44 |
44 namespace blink { | 45 namespace blink { |
45 | 46 |
46 class WebAXObject; | 47 class WebAXObject; |
47 class WebAutofillClient; | 48 class WebAutofillClient; |
48 class WebCompositedDisplayList; | 49 class WebCompositedDisplayList; |
49 class WebCredentialManagerClient; | 50 class WebCredentialManagerClient; |
50 class WebDragData; | 51 class WebDragData; |
51 class WebFrame; | 52 class WebFrame; |
52 class WebHitTestResult; | 53 class WebHitTestResult; |
54 class WebLocalFrame; | |
53 class WebPageImportanceSignals; | 55 class WebPageImportanceSignals; |
54 class WebPageOverlay; | 56 class WebPageOverlay; |
55 class WebPrerendererClient; | 57 class WebPrerendererClient; |
58 class WebRemoteFrame; | |
56 class WebSettings; | 59 class WebSettings; |
57 class WebSpellCheckClient; | 60 class WebSpellCheckClient; |
58 class WebString; | 61 class WebString; |
59 class WebViewClient; | 62 class WebViewClient; |
60 struct WebActiveWheelFlingParameters; | 63 struct WebActiveWheelFlingParameters; |
61 struct WebDeviceEmulationParams; | 64 struct WebDeviceEmulationParams; |
62 struct WebFloatPoint; | 65 struct WebFloatPoint; |
63 struct WebMediaPlayerAction; | 66 struct WebMediaPlayerAction; |
64 struct WebPluginAction; | 67 struct WebPluginAction; |
65 struct WebPoint; | 68 struct WebPoint; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
184 // viewport space. Returns true if an animation was started. | 187 // viewport space. Returns true if an animation was started. |
185 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } | 188 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } |
186 | 189 |
187 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|. | 190 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|. |
188 virtual void smoothScroll(int targetX, int targetY, long durationMs) { } | 191 virtual void smoothScroll(int targetX, int targetY, long durationMs) { } |
189 | 192 |
190 // Advance the focus of the WebView forward to the next element or to the | 193 // Advance the focus of the WebView forward to the next element or to the |
191 // previous element in the tab sequence (if reverse is true). | 194 // previous element in the tab sequence (if reverse is true). |
192 virtual void advanceFocus(bool reverse) { } | 195 virtual void advanceFocus(bool reverse) { } |
193 | 196 |
197 // Advance the focus from the frame |from| to the next (or previous, | |
dcheng
2015/12/04 23:11:01
"next in sequence (determined by WebFocusType)"
alexmos
2015/12/05 00:07:45
Done.
| |
198 // depending on the provided WebFocusType) focusable element in frame |to|. | |
199 // Used when focus needs to advance to/from a cross-process frame. | |
200 virtual void advanceFocusAcrossFrames(WebFocusType, WebRemoteFrame* from, We bLocalFrame* to) { } | |
201 | |
194 // Animate a scale into the specified rect where multiple targets were | 202 // Animate a scale into the specified rect where multiple targets were |
195 // found from previous tap gesture. | 203 // found from previous tap gesture. |
196 // Returns false if it doesn't do any zooming. | 204 // Returns false if it doesn't do any zooming. |
197 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; | 205 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; |
198 | 206 |
199 | 207 |
200 // Zoom ---------------------------------------------------------------- | 208 // Zoom ---------------------------------------------------------------- |
201 | 209 |
202 // Returns the current zoom level. 0 is "original size", and each increment | 210 // Returns the current zoom level. 0 is "original size", and each increment |
203 // above or below represents zooming 20% larger or smaller to default limits | 211 // above or below represents zooming 20% larger or smaller to default limits |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
477 // context's ability to deal with that failure gracefully can be tested. | 485 // context's ability to deal with that failure gracefully can be tested. |
478 virtual void forceNextDrawingBufferCreationToFail() = 0; | 486 virtual void forceNextDrawingBufferCreationToFail() = 0; |
479 | 487 |
480 protected: | 488 protected: |
481 ~WebView() {} | 489 ~WebView() {} |
482 }; | 490 }; |
483 | 491 |
484 } // namespace blink | 492 } // namespace blink |
485 | 493 |
486 #endif | 494 #endif |
OLD | NEW |