Chromium Code Reviews| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 | 169 |
| 170 // Clears the focused element (and selection if a text field is focused) | 170 // 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 | 171 // to ensure that a text field on the page is not eating keystrokes we |
| 172 // send it. | 172 // send it. |
| 173 virtual void clearFocusedElement() = 0; | 173 virtual void clearFocusedElement() = 0; |
| 174 | 174 |
| 175 // Scrolls the node currently in focus into |rect|, where |rect| is in | 175 // Scrolls the node currently in focus into |rect|, where |rect| is in |
| 176 // viewport space. Returns true if an animation was started. | 176 // viewport space. Returns true if an animation was started. |
| 177 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } | 177 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } |
| 178 | 178 |
| 179 | |
| 180 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|. | |
| 181 virtual void smoothScroll(int targetX, int targetY, long durationMs); | |
|
jdduke (slow)
2015/07/27 15:49:02
I guess this handles all of pageDown/pageUp/reques
hush (inactive)
2015/07/28 00:16:06
yes. This handles all three.
I use target position
| |
| 182 | |
| 179 // 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 |
| 180 // previous element in the tab sequence (if reverse is true). | 184 // previous element in the tab sequence (if reverse is true). |
| 181 virtual void advanceFocus(bool reverse) { } | 185 virtual void advanceFocus(bool reverse) { } |
| 182 | 186 |
| 183 // Animate a scale into the specified rect where multiple targets were | 187 // Animate a scale into the specified rect where multiple targets were |
| 184 // found from previous tap gesture. | 188 // found from previous tap gesture. |
| 185 // Returns false if it doesn't do any zooming. | 189 // Returns false if it doesn't do any zooming. |
| 186 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; | 190 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; |
| 187 | 191 |
| 188 | 192 |
| (...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. | 470 // context's ability to deal with that failure gracefully can be tested. |
| 467 virtual void forceNextDrawingBufferCreationToFail() = 0; | 471 virtual void forceNextDrawingBufferCreationToFail() = 0; |
| 468 | 472 |
| 469 protected: | 473 protected: |
| 470 ~WebView() {} | 474 ~WebView() {} |
| 471 }; | 475 }; |
| 472 | 476 |
| 473 } // namespace blink | 477 } // namespace blink |
| 474 | 478 |
| 475 #endif | 479 #endif |
| OLD | NEW |