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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 virtual void setFocusedFrame(WebFrame*) = 0; | 176 virtual void setFocusedFrame(WebFrame*) = 0; |
177 | 177 |
178 // Focus the first (last if reverse is true) focusable node. | 178 // Focus the first (last if reverse is true) focusable node. |
179 virtual void setInitialFocus(bool reverse) = 0; | 179 virtual void setInitialFocus(bool reverse) = 0; |
180 | 180 |
181 // Clears the focused element (and selection if a text field is focused) | 181 // Clears the focused element (and selection if a text field is focused) |
182 // to ensure that a text field on the page is not eating keystrokes we | 182 // to ensure that a text field on the page is not eating keystrokes we |
183 // send it. | 183 // send it. |
184 virtual void clearFocusedElement() = 0; | 184 virtual void clearFocusedElement() = 0; |
185 | 185 |
186 // Deprecated API. Will be removed soon.. | |
187 virtual void clearFocusedNode() = 0; | |
188 | |
189 // Scrolls the node currently in focus into view. | 186 // Scrolls the node currently in focus into view. |
190 virtual void scrollFocusedNodeIntoView() = 0; | 187 virtual void scrollFocusedNodeIntoView() = 0; |
191 | 188 |
192 // Scrolls the node currently in focus into |rect|, where |rect| is in | 189 // Scrolls the node currently in focus into |rect|, where |rect| is in |
193 // window space. | 190 // window space. |
194 virtual void scrollFocusedNodeIntoRect(const WebRect&) { } | 191 virtual void scrollFocusedNodeIntoRect(const WebRect&) { } |
195 | 192 |
196 // Advance the focus of the WebView forward to the next element or to the | 193 // Advance the focus of the WebView forward to the next element or to the |
197 // previous element in the tab sequence (if reverse is true). | 194 // previous element in the tab sequence (if reverse is true). |
198 virtual void advanceFocus(bool reverse) { } | 195 virtual void advanceFocus(bool reverse) { } |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 493 |
497 // Testing functionality for TestRunner --------------------------------- | 494 // Testing functionality for TestRunner --------------------------------- |
498 | 495 |
499 protected: | 496 protected: |
500 ~WebView() {} | 497 ~WebView() {} |
501 }; | 498 }; |
502 | 499 |
503 } // namespace blink | 500 } // namespace blink |
504 | 501 |
505 #endif | 502 #endif |
OLD | NEW |