| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 // Focus the first (last if reverse is true) focusable node. | 171 // Focus the first (last if reverse is true) focusable node. |
| 172 virtual void setInitialFocus(bool reverse) = 0; | 172 virtual void setInitialFocus(bool reverse) = 0; |
| 173 | 173 |
| 174 // Clears the focused element (and selection if a text field is focused) | 174 // Clears the focused element (and selection if a text field is focused) |
| 175 // to ensure that a text field on the page is not eating keystrokes we | 175 // to ensure that a text field on the page is not eating keystrokes we |
| 176 // send it. | 176 // send it. |
| 177 virtual void clearFocusedElement() = 0; | 177 virtual void clearFocusedElement() = 0; |
| 178 | 178 |
| 179 // Scrolls the node currently in focus into |rect|, where |rect| is in | 179 // Scrolls the node currently in focus into |rect|, where |rect| is in |
| 180 // window space. Returns true if an animation was started. | 180 // viewport space. Returns true if an animation was started. |
| 181 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } | 181 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } |
| 182 | 182 |
| 183 // 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 |
| 184 // previous element in the tab sequence (if reverse is true). | 184 // previous element in the tab sequence (if reverse is true). |
| 185 virtual void advanceFocus(bool reverse) { } | 185 virtual void advanceFocus(bool reverse) { } |
| 186 | 186 |
| 187 // Animate a scale into the specified rect where multiple targets were | 187 // Animate a scale into the specified rect where multiple targets were |
| 188 // found from previous tap gesture. | 188 // found from previous tap gesture. |
| 189 // Returns false if it doesn't do any zooming. | 189 // Returns false if it doesn't do any zooming. |
| 190 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; | 190 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 // event gets generated/tested. | 491 // event gets generated/tested. |
| 492 virtual void forceNextWebGLContextCreationToFail() = 0; | 492 virtual void forceNextWebGLContextCreationToFail() = 0; |
| 493 | 493 |
| 494 protected: | 494 protected: |
| 495 ~WebView() {} | 495 ~WebView() {} |
| 496 }; | 496 }; |
| 497 | 497 |
| 498 } // namespace blink | 498 } // namespace blink |
| 499 | 499 |
| 500 #endif | 500 #endif |
| OLD | NEW |