| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // Focus --------------------------------------------------------------- | 153 // Focus --------------------------------------------------------------- |
| 154 | 154 |
| 155 virtual WebFrame* focusedFrame() = 0; | 155 virtual WebFrame* focusedFrame() = 0; |
| 156 virtual void setFocusedFrame(WebFrame*) = 0; | 156 virtual void setFocusedFrame(WebFrame*) = 0; |
| 157 | 157 |
| 158 // Sets the provided frame as focused and fires blur/focus events on any | 158 // Sets the provided frame as focused and fires blur/focus events on any |
| 159 // currently focused elements in old/new focused documents. Note that this | 159 // currently focused elements in old/new focused documents. Note that this |
| 160 // is different from setFocusedFrame, which does not fire events on focused | 160 // is different from setFocusedFrame, which does not fire events on focused |
| 161 // elements. | 161 // elements. |
| 162 virtual void focusDocumentView(WebFrame*) = 0; | 162 virtual void focusDocumentView(WebFrame*) = 0; |
| 163 virtual void unfocusDocumentView(WebFrame*) = 0; |
| 163 | 164 |
| 164 // Focus the first (last if reverse is true) focusable node. | 165 // Focus the first (last if reverse is true) focusable node. |
| 165 virtual void setInitialFocus(bool reverse) = 0; | 166 virtual void setInitialFocus(bool reverse) = 0; |
| 166 | 167 |
| 167 // Clears the focused element (and selection if a text field is focused) | 168 // Clears the focused element (and selection if a text field is focused) |
| 168 // to ensure that a text field on the page is not eating keystrokes we | 169 // to ensure that a text field on the page is not eating keystrokes we |
| 169 // send it. | 170 // send it. |
| 170 virtual void clearFocusedElement() = 0; | 171 virtual void clearFocusedElement() = 0; |
| 171 | 172 |
| 172 // Scrolls the node currently in focus into |rect|, where |rect| is in | 173 // Scrolls the node currently in focus into |rect|, where |rect| is in |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 // context's ability to deal with that failure gracefully can be tested. | 489 // context's ability to deal with that failure gracefully can be tested. |
| 489 virtual void forceNextDrawingBufferCreationToFail() = 0; | 490 virtual void forceNextDrawingBufferCreationToFail() = 0; |
| 490 | 491 |
| 491 protected: | 492 protected: |
| 492 ~WebView() {} | 493 ~WebView() {} |
| 493 }; | 494 }; |
| 494 | 495 |
| 495 } // namespace blink | 496 } // namespace blink |
| 496 | 497 |
| 497 #endif | 498 #endif |
| OLD | NEW |