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