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

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: 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
« Source/web/WebViewImpl.cpp ('K') | « 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Clears the focused element (and selection if a text field is focused) 178 // Clears the focused element (and selection if a text field is focused)
179 // to ensure that a text field on the page is not eating keystrokes we 179 // to ensure that a text field on the page is not eating keystrokes we
180 // send it. 180 // send it.
181 virtual void clearFocusedElement() = 0; 181 virtual void clearFocusedElement() = 0;
182 182
183 // Scrolls the node currently in focus into |rect|, where |rect| is in 183 // Scrolls the node currently in focus into |rect|, where |rect| is in
184 // window space. 184 // window space.
185 virtual void scrollFocusedNodeIntoRect(const WebRect&) { } 185 virtual void scrollFocusedNodeIntoRect(const WebRect&) { }
186 186
187 // Advance the focus of the WebView to next text input element from current
188 // by following the direction (forward/backward).
189 virtual void advanceFocusToNextInputField(bool direction) { }
bcwhite 2015/02/24 17:06:23 "direction" doesn't clearly define which matches "
yosin_UTC9 2015/02/25 01:25:36 Please considering use |WebFocusType| enum for rep
AKV 2015/04/08 18:38:12 Done. Thanks
AKV 2015/04/08 18:38:12 Done. Thanks
190
187 // Advance the focus of the WebView forward to the next element or to the 191 // Advance the focus of the WebView forward to the next element or to the
188 // previous element in the tab sequence (if reverse is true). 192 // previous element in the tab sequence (if reverse is true).
189 virtual void advanceFocus(bool reverse) { } 193 virtual void advanceFocus(bool reverse) { }
190 194
191 // Animate a scale into the specified find-in-page rect. 195 // Animate a scale into the specified find-in-page rect.
192 virtual void zoomToFindInPageRect(const WebRect&) = 0; 196 virtual void zoomToFindInPageRect(const WebRect&) = 0;
193 197
194 // Animate a scale into the specified rect where multiple targets were 198 // Animate a scale into the specified rect where multiple targets were
195 // found from previous tap gesture. 199 // found from previous tap gesture.
196 // Returns false if it doesn't do any zooming. 200 // Returns false if it doesn't do any zooming.
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 492
489 // Testing functionality for TestRunner --------------------------------- 493 // Testing functionality for TestRunner ---------------------------------
490 494
491 protected: 495 protected:
492 ~WebView() {} 496 ~WebView() {}
493 }; 497 };
494 498
495 } // namespace blink 499 } // namespace blink
496 500
497 #endif 501 #endif
OLDNEW
« Source/web/WebViewImpl.cpp ('K') | « public/web/WebTextInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698