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

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

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Created 3 years, 7 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
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 return false; 209 return false;
210 } 210 }
211 211
212 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|. 212 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|.
213 virtual void smoothScroll(int targetX, int targetY, long durationMs) {} 213 virtual void smoothScroll(int targetX, int targetY, long durationMs) {}
214 214
215 // Advance the focus of the WebView forward to the next element or to the 215 // Advance the focus of the WebView forward to the next element or to the
216 // previous element in the tab sequence (if reverse is true). 216 // previous element in the tab sequence (if reverse is true).
217 virtual void advanceFocus(bool reverse) {} 217 virtual void advanceFocus(bool reverse) {}
218 218
219 // Advance the focus of the WebView to next text input element from current
220 // input field wrt sequential navigation with TAB or Shift + TAB
221 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates
222 // Shift + TAB. (Will be extended to other form Controls like Select element
223 // , Checkbox, Radio etc.)
224 virtual void advanceFocusInForm(WebFocusType focusType) {}
nasko 2017/04/25 21:32:45 Please move this API to WebFrame. Forms are specif
AKVT 2017/04/26 10:33:04 Done.
225
219 // Advance the focus from the frame |from| to the next in sequence 226 // Advance the focus from the frame |from| to the next in sequence
220 // (determined by WebFocusType) focusable element in frame |to|. Used when 227 // (determined by WebFocusType) focusable element in frame |to|. Used when
221 // focus needs to advance to/from a cross-process frame. 228 // focus needs to advance to/from a cross-process frame.
222 virtual void advanceFocusAcrossFrames(WebFocusType, 229 virtual void advanceFocusAcrossFrames(WebFocusType,
223 WebRemoteFrame* from, 230 WebRemoteFrame* from,
224 WebLocalFrame* to) {} 231 WebLocalFrame* to) {}
225 232
226 // Animate a scale into the specified rect where multiple targets were 233 // Animate a scale into the specified rect where multiple targets were
227 // found from previous tap gesture. 234 // found from previous tap gesture.
228 // Returns false if it doesn't do any zooming. 235 // Returns false if it doesn't do any zooming.
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 // completed. 506 // completed.
500 WebWidget* widget() { return this; } 507 WebWidget* widget() { return this; }
501 508
502 protected: 509 protected:
503 ~WebView() {} 510 ~WebView() {}
504 }; 511 };
505 512
506 } // namespace blink 513 } // namespace blink
507 514
508 #endif 515 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698