| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // the entire frame tree containing this tree looking for a frame that | 186 // the entire frame tree containing this tree looking for a frame that |
| 187 // matches the given name. If the optional relativeToFrame parameter | 187 // matches the given name. If the optional relativeToFrame parameter |
| 188 // is specified, then the search begins with the given frame and its | 188 // is specified, then the search begins with the given frame and its |
| 189 // children. | 189 // children. |
| 190 virtual WebFrame* findFrameByName( | 190 virtual WebFrame* findFrameByName( |
| 191 const WebString& name, WebFrame* relativeToFrame = 0) = 0; | 191 const WebString& name, WebFrame* relativeToFrame = 0) = 0; |
| 192 | 192 |
| 193 | 193 |
| 194 // Focus --------------------------------------------------------------- | 194 // Focus --------------------------------------------------------------- |
| 195 | 195 |
| 196 virtual WebFrame* 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 // Focus the first (last if reverse is true) focusable node. | 205 // Focus the first (last if reverse is true) focusable node. |
| 206 virtual void setInitialFocus(bool reverse) = 0; | 206 virtual void setInitialFocus(bool reverse) = 0; |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 // completed. | 534 // completed. |
| 535 WebWidget* widget() { return this; } | 535 WebWidget* widget() { return this; } |
| 536 | 536 |
| 537 protected: | 537 protected: |
| 538 ~WebView() {} | 538 ~WebView() {} |
| 539 }; | 539 }; |
| 540 | 540 |
| 541 } // namespace blink | 541 } // namespace blink |
| 542 | 542 |
| 543 #endif | 543 #endif |
| OLD | NEW |