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 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 170 |
170 // Clears the focused element (and selection if a text field is focused) | 171 // Clears the focused element (and selection if a text field is focused) |
171 // to ensure that a text field on the page is not eating keystrokes we | 172 // to ensure that a text field on the page is not eating keystrokes we |
172 // send it. | 173 // send it. |
173 virtual void clearFocusedElement() = 0; | 174 virtual void clearFocusedElement() = 0; |
174 | 175 |
175 // 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 |
176 // viewport space. Returns true if an animation was started. | 177 // viewport space. Returns true if an animation was started. |
177 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } | 178 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } |
178 | 179 |
| 180 // Advance the focus of the WebView to next text input element from current |
| 181 // input field wrt sequential navigation with TAB or Shift + TAB |
| 182 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates |
| 183 // Shift + TAB. (Will be extended to other form Controls like Select element
, Checkbox, Radio etc.) |
| 184 virtual void advanceFocusInForm(WebFocusType focusType) { } |
| 185 |
179 // Advance the focus of the WebView forward to the next element or to the | 186 // Advance the focus of the WebView forward to the next element or to the |
180 // previous element in the tab sequence (if reverse is true). | 187 // previous element in the tab sequence (if reverse is true). |
181 virtual void advanceFocus(bool reverse) { } | 188 virtual void advanceFocus(bool reverse) { } |
182 | 189 |
183 // Animate a scale into the specified rect where multiple targets were | 190 // Animate a scale into the specified rect where multiple targets were |
184 // found from previous tap gesture. | 191 // found from previous tap gesture. |
185 // Returns false if it doesn't do any zooming. | 192 // Returns false if it doesn't do any zooming. |
186 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; | 193 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; |
187 | 194 |
188 | 195 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 // 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. |
467 virtual void forceNextDrawingBufferCreationToFail() = 0; | 474 virtual void forceNextDrawingBufferCreationToFail() = 0; |
468 | 475 |
469 protected: | 476 protected: |
470 ~WebView() {} | 477 ~WebView() {} |
471 }; | 478 }; |
472 | 479 |
473 } // namespace blink | 480 } // namespace blink |
474 | 481 |
475 #endif | 482 #endif |
OLD | NEW |