| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // children. | 159 // children. |
| 160 virtual WebFrame* findFrameByName( | 160 virtual WebFrame* findFrameByName( |
| 161 const WebString& name, WebFrame* relativeToFrame = 0) = 0; | 161 const WebString& name, WebFrame* relativeToFrame = 0) = 0; |
| 162 | 162 |
| 163 | 163 |
| 164 // Focus --------------------------------------------------------------- | 164 // Focus --------------------------------------------------------------- |
| 165 | 165 |
| 166 virtual WebFrame* focusedFrame() = 0; | 166 virtual WebFrame* focusedFrame() = 0; |
| 167 virtual void setFocusedFrame(WebFrame*) = 0; | 167 virtual void setFocusedFrame(WebFrame*) = 0; |
| 168 | 168 |
| 169 // Sets the provided frame as focused and fires blur/focus events on any |
| 170 // currently focused elements in old/new focused documents. Note that this |
| 171 // is different from setFocusedFrame, which does not fire events on focused |
| 172 // elements. |
| 173 virtual void focusDocumentView(WebFrame*) = 0; |
| 174 |
| 169 // Focus the first (last if reverse is true) focusable node. | 175 // Focus the first (last if reverse is true) focusable node. |
| 170 virtual void setInitialFocus(bool reverse) = 0; | 176 virtual void setInitialFocus(bool reverse) = 0; |
| 171 | 177 |
| 172 // Clears the focused element (and selection if a text field is focused) | 178 // Clears the focused element (and selection if a text field is focused) |
| 173 // to ensure that a text field on the page is not eating keystrokes we | 179 // to ensure that a text field on the page is not eating keystrokes we |
| 174 // send it. | 180 // send it. |
| 175 virtual void clearFocusedElement() = 0; | 181 virtual void clearFocusedElement() = 0; |
| 176 | 182 |
| 177 // Scrolls the node currently in focus into |rect|, where |rect| is in | 183 // Scrolls the node currently in focus into |rect|, where |rect| is in |
| 178 // viewport space. Returns true if an animation was started. | 184 // viewport space. Returns true if an animation was started. |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 // context's ability to deal with that failure gracefully can be tested. | 492 // context's ability to deal with that failure gracefully can be tested. |
| 487 virtual void forceNextDrawingBufferCreationToFail() = 0; | 493 virtual void forceNextDrawingBufferCreationToFail() = 0; |
| 488 | 494 |
| 489 protected: | 495 protected: |
| 490 ~WebView() {} | 496 ~WebView() {} |
| 491 }; | 497 }; |
| 492 | 498 |
| 493 } // namespace blink | 499 } // namespace blink |
| 494 | 500 |
| 495 #endif | 501 #endif |
| OLD | NEW |