| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 virtual void SetWindowFeatures(const WebWindowFeatures&) = 0; | 167 virtual void SetWindowFeatures(const WebWindowFeatures&) = 0; |
| 168 | 168 |
| 169 // Marks the WebView as being opened by a DOM call. This is relevant | 169 // Marks the WebView as being opened by a DOM call. This is relevant |
| 170 // for whether window.close() may be called. | 170 // for whether window.close() may be called. |
| 171 virtual void SetOpenedByDOM() = 0; | 171 virtual void SetOpenedByDOM() = 0; |
| 172 | 172 |
| 173 // Frames -------------------------------------------------------------- | 173 // Frames -------------------------------------------------------------- |
| 174 | 174 |
| 175 virtual WebFrame* MainFrame() = 0; | 175 virtual WebFrame* MainFrame() = 0; |
| 176 | 176 |
| 177 // Returns the frame identified by the given name. This method | |
| 178 // supports pseudo-names like _self, _top, and _blank. It traverses | |
| 179 // the entire frame tree containing this tree looking for a frame that | |
| 180 // matches the given name. If the optional relativeToFrame parameter | |
| 181 // is specified, then the search begins with the given frame and its | |
| 182 // children. | |
| 183 virtual WebFrame* FindFrameByName(const WebString& name, | |
| 184 WebFrame* relative_to_frame = 0) = 0; | |
| 185 | |
| 186 // Focus --------------------------------------------------------------- | 177 // Focus --------------------------------------------------------------- |
| 187 | 178 |
| 188 virtual WebLocalFrame* FocusedFrame() = 0; | 179 virtual WebLocalFrame* FocusedFrame() = 0; |
| 189 virtual void SetFocusedFrame(WebFrame*) = 0; | 180 virtual void SetFocusedFrame(WebFrame*) = 0; |
| 190 | 181 |
| 191 // Sets the provided frame as focused and fires blur/focus events on any | 182 // Sets the provided frame as focused and fires blur/focus events on any |
| 192 // currently focused elements in old/new focused documents. Note that this | 183 // currently focused elements in old/new focused documents. Note that this |
| 193 // is different from setFocusedFrame, which does not fire events on focused | 184 // is different from setFocusedFrame, which does not fire events on focused |
| 194 // elements. | 185 // elements. |
| 195 virtual void FocusDocumentView(WebFrame*) = 0; | 186 virtual void FocusDocumentView(WebFrame*) = 0; |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 // completed. | 479 // completed. |
| 489 WebWidget* GetWidget() { return this; } | 480 WebWidget* GetWidget() { return this; } |
| 490 | 481 |
| 491 protected: | 482 protected: |
| 492 ~WebView() {} | 483 ~WebView() {} |
| 493 }; | 484 }; |
| 494 | 485 |
| 495 } // namespace blink | 486 } // namespace blink |
| 496 | 487 |
| 497 #endif | 488 #endif |
| OLD | NEW |