| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
| 6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
| 7 | 7 |
| 8 #include "WebFrame.h" | 8 #include "WebFrame.h" |
| 9 #include "WebFrameLoadType.h" | 9 #include "WebFrameLoadType.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class WebTestInterfaceFactory; | 24 class WebTestInterfaceFactory; |
| 25 struct WebPrintPresetOptions; | 25 struct WebPrintPresetOptions; |
| 26 | 26 |
| 27 // Interface for interacting with in process frames. This contains methods that | 27 // Interface for interacting with in process frames. This contains methods that |
| 28 // require interacting with a frame's document. | 28 // require interacting with a frame's document. |
| 29 // FIXME: Move lots of methods from WebFrame in here. | 29 // FIXME: Move lots of methods from WebFrame in here. |
| 30 class WebLocalFrame : public WebFrame { | 30 class WebLocalFrame : public WebFrame { |
| 31 public: | 31 public: |
| 32 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). | 32 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). |
| 33 // It is valid to pass a null client pointer. | 33 // It is valid to pass a null client pointer. |
| 34 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*)
; | 34 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*,
WebFrame* opener = nullptr); |
| 35 | 35 |
| 36 // Used to create a provisional local frame in prepration for replacing a | 36 // Used to create a provisional local frame in prepration for replacing a |
| 37 // remote frame if the load commits. The returned frame is only partially | 37 // remote frame if the load commits. The returned frame is only partially |
| 38 // attached to the frame tree: it has the same parent as its potential | 38 // attached to the frame tree: it has the same parent as its potential |
| 39 // replacee but is invisible to the rest of the frames in the frame tree. | 39 // replacee but is invisible to the rest of the frames in the frame tree. |
| 40 // If the load commits, call swap() to fully attach this frame. | 40 // If the load commits, call swap() to fully attach this frame. |
| 41 BLINK_EXPORT static WebLocalFrame* createProvisional(WebFrameClient*, WebRem
oteFrame*, WebSandboxFlags, const WebFrameOwnerProperties&); | 41 BLINK_EXPORT static WebLocalFrame* createProvisional(WebFrameClient*, WebRem
oteFrame*, WebSandboxFlags, const WebFrameOwnerProperties&); |
| 42 | 42 |
| 43 // Returns the WebFrame associated with the current V8 context. This | 43 // Returns the WebFrame associated with the current V8 context. This |
| 44 // function can return 0 if the context is associated with a Document that | 44 // function can return 0 if the context is associated with a Document that |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 // to call these on a WebLocalFrame. | 312 // to call these on a WebLocalFrame. |
| 313 bool isWebLocalFrame() const override = 0; | 313 bool isWebLocalFrame() const override = 0; |
| 314 WebLocalFrame* toWebLocalFrame() override = 0; | 314 WebLocalFrame* toWebLocalFrame() override = 0; |
| 315 bool isWebRemoteFrame() const override = 0; | 315 bool isWebRemoteFrame() const override = 0; |
| 316 WebRemoteFrame* toWebRemoteFrame() override = 0; | 316 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 317 }; | 317 }; |
| 318 | 318 |
| 319 } // namespace blink | 319 } // namespace blink |
| 320 | 320 |
| 321 #endif // WebLocalFrame_h | 321 #endif // WebLocalFrame_h |
| OLD | NEW |