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" | |
37 #include "../platform/WebPageVisibilityState.h" | 36 #include "../platform/WebPageVisibilityState.h" |
38 #include "../platform/WebString.h" | 37 #include "../platform/WebString.h" |
39 #include "../platform/WebVector.h" | 38 #include "../platform/WebVector.h" |
40 #include "WebDragOperation.h" | 39 #include "WebDragOperation.h" |
41 #include "WebHistoryCommitType.h" | 40 #include "WebHistoryCommitType.h" |
42 #include "WebHistoryItem.h" | 41 #include "WebHistoryItem.h" |
43 #include "WebWidget.h" | 42 #include "WebWidget.h" |
44 | 43 |
45 namespace blink { | 44 namespace blink { |
46 | 45 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // send it. | 173 // send it. |
175 virtual void clearFocusedElement() = 0; | 174 virtual void clearFocusedElement() = 0; |
176 | 175 |
177 // Scrolls the node currently in focus into |rect|, where |rect| is in | 176 // Scrolls the node currently in focus into |rect|, where |rect| is in |
178 // viewport space. Returns true if an animation was started. | 177 // viewport space. Returns true if an animation was started. |
179 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } | 178 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } |
180 | 179 |
181 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|. | 180 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|. |
182 virtual void smoothScroll(int targetX, int targetY, long durationMs) { } | 181 virtual void smoothScroll(int targetX, int targetY, long durationMs) { } |
183 | 182 |
184 // Advance the focus of the WebView to next text input element from current | |
185 // input field wrt sequential navigation with TAB or Shift + TAB | |
186 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates | |
187 // Shift + TAB. (Will be extended to other form Controls like Select element
, Checkbox, Radio etc.) | |
188 virtual void advanceFocusInForm(WebFocusType focusType) {} | |
189 | |
190 // Advance the focus of the WebView forward to the next element or to the | 183 // 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). | 184 // previous element in the tab sequence (if reverse is true). |
192 virtual void advanceFocus(bool reverse) { } | 185 virtual void advanceFocus(bool reverse) { } |
193 | 186 |
194 // Animate a scale into the specified rect where multiple targets were | 187 // Animate a scale into the specified rect where multiple targets were |
195 // found from previous tap gesture. | 188 // found from previous tap gesture. |
196 // Returns false if it doesn't do any zooming. | 189 // Returns false if it doesn't do any zooming. |
197 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; | 190 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; |
198 | 191 |
199 | 192 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 // context's ability to deal with that failure gracefully can be tested. | 473 // context's ability to deal with that failure gracefully can be tested. |
481 virtual void forceNextDrawingBufferCreationToFail() = 0; | 474 virtual void forceNextDrawingBufferCreationToFail() = 0; |
482 | 475 |
483 protected: | 476 protected: |
484 ~WebView() {} | 477 ~WebView() {} |
485 }; | 478 }; |
486 | 479 |
487 } // namespace blink | 480 } // namespace blink |
488 | 481 |
489 #endif | 482 #endif |
OLD | NEW |