| 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 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|. |
| 180 virtual void smoothScroll(int targetX, int targetY, long durationMs) { } |
| 181 |
| 179 // Advance the focus of the WebView forward to the next element or to the | 182 // 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). | 183 // previous element in the tab sequence (if reverse is true). |
| 181 virtual void advanceFocus(bool reverse) { } | 184 virtual void advanceFocus(bool reverse) { } |
| 182 | 185 |
| 183 // Animate a scale into the specified rect where multiple targets were | 186 // Animate a scale into the specified rect where multiple targets were |
| 184 // found from previous tap gesture. | 187 // found from previous tap gesture. |
| 185 // Returns false if it doesn't do any zooming. | 188 // Returns false if it doesn't do any zooming. |
| 186 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; | 189 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; |
| 187 | 190 |
| 188 | 191 |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 // context's ability to deal with that failure gracefully can be tested. | 472 // context's ability to deal with that failure gracefully can be tested. |
| 470 virtual void forceNextDrawingBufferCreationToFail() = 0; | 473 virtual void forceNextDrawingBufferCreationToFail() = 0; |
| 471 | 474 |
| 472 protected: | 475 protected: |
| 473 ~WebView() {} | 476 ~WebView() {} |
| 474 }; | 477 }; |
| 475 | 478 |
| 476 } // namespace blink | 479 } // namespace blink |
| 477 | 480 |
| 478 #endif | 481 #endif |
| OLD | NEW |