Chromium Code Reviews| 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 "WebCompositionUnderline.h" | 8 #include "WebCompositionUnderline.h" |
| 9 #include "WebFrame.h" | 9 #include "WebFrame.h" |
| 10 #include "WebFrameLoadType.h" | 10 #include "WebFrameLoadType.h" |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 struct WebFindOptions; | 30 struct WebFindOptions; |
| 31 struct WebFloatRect; | 31 struct WebFloatRect; |
| 32 struct WebPrintPresetOptions; | 32 struct WebPrintPresetOptions; |
| 33 | 33 |
| 34 // Interface for interacting with in process frames. This contains methods that | 34 // Interface for interacting with in process frames. This contains methods that |
| 35 // require interacting with a frame's document. | 35 // require interacting with a frame's document. |
| 36 // FIXME: Move lots of methods from WebFrame in here. | 36 // FIXME: Move lots of methods from WebFrame in here. |
| 37 class WebLocalFrame : public WebFrame { | 37 class WebLocalFrame : public WebFrame { |
| 38 public: | 38 public: |
| 39 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). | 39 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). |
| 40 // It is valid to pass a null client pointer. | 40 // WebFrameClient may not be null. |
|
esprehn
2016/09/29 04:28:42
we should probably pass a reference then
dcheng
2016/09/29 04:42:38
I'm not opposed to changing this, but it's inconsi
| |
| 41 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*, WebFrame* opener = nullptr); | 41 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*, WebFrame* opener = nullptr); |
| 42 | 42 |
| 43 // Used to create a provisional local frame in prepration for replacing a | 43 // Used to create a provisional local frame in prepration for replacing a |
| 44 // remote frame if the load commits. The returned frame is only partially | 44 // remote frame if the load commits. The returned frame is only partially |
| 45 // attached to the frame tree: it has the same parent as its potential | 45 // attached to the frame tree: it has the same parent as its potential |
| 46 // replacee but is invisible to the rest of the frames in the frame tree. | 46 // replacee but is invisible to the rest of the frames in the frame tree. |
| 47 // If the load commits, call swap() to fully attach this frame. | 47 // If the load commits, call swap() to fully attach this frame. |
| 48 BLINK_EXPORT static WebLocalFrame* createProvisional(WebFrameClient*, WebRem oteFrame*, WebSandboxFlags); | 48 BLINK_EXPORT static WebLocalFrame* createProvisional(WebFrameClient*, WebRem oteFrame*, WebSandboxFlags); |
| 49 | 49 |
| 50 // Returns the WebFrame associated with the current V8 context. This | 50 // Returns the WebFrame associated with the current V8 context. This |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 415 // to call these on a WebLocalFrame. | 415 // to call these on a WebLocalFrame. |
| 416 bool isWebLocalFrame() const override = 0; | 416 bool isWebLocalFrame() const override = 0; |
| 417 WebLocalFrame* toWebLocalFrame() override = 0; | 417 WebLocalFrame* toWebLocalFrame() override = 0; |
| 418 bool isWebRemoteFrame() const override = 0; | 418 bool isWebRemoteFrame() const override = 0; |
| 419 WebRemoteFrame* toWebRemoteFrame() override = 0; | 419 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 420 }; | 420 }; |
| 421 | 421 |
| 422 } // namespace blink | 422 } // namespace blink |
| 423 | 423 |
| 424 #endif // WebLocalFrame_h | 424 #endif // WebLocalFrame_h |
| OLD | NEW |