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