| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 virtual WebLocalFrame* focusedFrame() = 0; | 191 virtual WebLocalFrame* focusedFrame() = 0; |
| 192 virtual void setFocusedFrame(WebFrame*) = 0; | 192 virtual void setFocusedFrame(WebFrame*) = 0; |
| 193 | 193 |
| 194 // Sets the provided frame as focused and fires blur/focus events on any | 194 // Sets the provided frame as focused and fires blur/focus events on any |
| 195 // currently focused elements in old/new focused documents. Note that this | 195 // currently focused elements in old/new focused documents. Note that this |
| 196 // is different from setFocusedFrame, which does not fire events on focused | 196 // is different from setFocusedFrame, which does not fire events on focused |
| 197 // elements. | 197 // elements. |
| 198 virtual void focusDocumentView(WebFrame*) = 0; | 198 virtual void focusDocumentView(WebFrame*) = 0; |
| 199 | 199 |
| 200 // Sets no frame as focused and fires blur events on any currently focused | |
| 201 // element. | |
| 202 virtual void unfocusDocumentView() = 0; | |
| 203 | |
| 204 // Focus the first (last if reverse is true) focusable node. | 200 // Focus the first (last if reverse is true) focusable node. |
| 205 virtual void setInitialFocus(bool reverse) = 0; | 201 virtual void setInitialFocus(bool reverse) = 0; |
| 206 | 202 |
| 207 // Clears the focused element (and selection if a text field is focused) | 203 // Clears the focused element (and selection if a text field is focused) |
| 208 // to ensure that a text field on the page is not eating keystrokes we | 204 // to ensure that a text field on the page is not eating keystrokes we |
| 209 // send it. | 205 // send it. |
| 210 virtual void clearFocusedElement() = 0; | 206 virtual void clearFocusedElement() = 0; |
| 211 | 207 |
| 212 // If it is editable, scrolls the element currently in focus into |rect|, | 208 // If it is editable, scrolls the element currently in focus into |rect|, |
| 213 // where |rect| is in viewport space. | 209 // where |rect| is in viewport space. |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 // completed. | 526 // completed. |
| 531 WebWidget* widget() { return this; } | 527 WebWidget* widget() { return this; } |
| 532 | 528 |
| 533 protected: | 529 protected: |
| 534 ~WebView() {} | 530 ~WebView() {} |
| 535 }; | 531 }; |
| 536 | 532 |
| 537 } // namespace blink | 533 } // namespace blink |
| 538 | 534 |
| 539 #endif | 535 #endif |
| OLD | NEW |