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

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

Issue 939603002: Adding support for Smart GO NEXT feature in Android Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed the naming issue in Keyboard function name. Created 5 years, 8 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 | « public/web/WebTextInputType.h ('k') | no next file » | 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 15 matching lines...) Expand all
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 176
176 // Clears the focused element (and selection if a text field is focused) 177 // Clears the focused element (and selection if a text field is focused)
177 // to ensure that a text field on the page is not eating keystrokes we 178 // to ensure that a text field on the page is not eating keystrokes we
178 // send it. 179 // send it.
179 virtual void clearFocusedElement() = 0; 180 virtual void clearFocusedElement() = 0;
180 181
181 // Scrolls the node currently in focus into |rect|, where |rect| is in 182 // Scrolls the node currently in focus into |rect|, where |rect| is in
182 // viewport space. Returns true if an animation was started. 183 // viewport space. Returns true if an animation was started.
183 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } 184 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; }
184 185
186 // Advance the focus of the WebView to next text input element from current
187 // input field wrt sequential navigation with TAB or Shift + TAB
188 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates
189 // Shift + TAB.
190 virtual void advanceFocusToNextInputField(WebFocusType focusType) { }
tkent 2015/04/17 04:12:35 The name should be advanceFocusToNextFormControl
AKV 2015/04/17 10:16:41 Done.
191
185 // Advance the focus of the WebView forward to the next element or to the 192 // Advance the focus of the WebView forward to the next element or to the
186 // previous element in the tab sequence (if reverse is true). 193 // previous element in the tab sequence (if reverse is true).
187 virtual void advanceFocus(bool reverse) { } 194 virtual void advanceFocus(bool reverse) { }
188 195
189 // Animate a scale into the specified rect where multiple targets were 196 // Animate a scale into the specified rect where multiple targets were
190 // found from previous tap gesture. 197 // found from previous tap gesture.
191 // Returns false if it doesn't do any zooming. 198 // Returns false if it doesn't do any zooming.
192 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; 199 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0;
193 200
194 201
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 // event gets generated/tested. 485 // event gets generated/tested.
479 virtual void forceNextWebGLContextCreationToFail() = 0; 486 virtual void forceNextWebGLContextCreationToFail() = 0;
480 487
481 protected: 488 protected:
482 ~WebView() {} 489 ~WebView() {}
483 }; 490 };
484 491
485 } // namespace blink 492 } // namespace blink
486 493
487 #endif 494 #endif
OLDNEW
« no previous file with comments | « public/web/WebTextInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698