| 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 <set> | 8 #include <set> |
| 9 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
| 10 #include "WebFrame.h" | 10 #include "WebFrame.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // | 75 // |
| 76 // Otherwise, if the load should not commit, call detach() to discard the | 76 // Otherwise, if the load should not commit, call detach() to discard the |
| 77 // frame. | 77 // frame. |
| 78 BLINK_EXPORT static WebLocalFrame* CreateProvisional( | 78 BLINK_EXPORT static WebLocalFrame* CreateProvisional( |
| 79 WebFrameClient*, | 79 WebFrameClient*, |
| 80 blink::InterfaceProvider*, | 80 blink::InterfaceProvider*, |
| 81 blink::InterfaceRegistry*, | 81 blink::InterfaceRegistry*, |
| 82 WebRemoteFrame*, | 82 WebRemoteFrame*, |
| 83 WebSandboxFlags); | 83 WebSandboxFlags); |
| 84 | 84 |
| 85 // TODO(dcheng): Add a CreateChild() method. |
| 86 |
| 85 // Returns the WebFrame associated with the current V8 context. This | 87 // Returns the WebFrame associated with the current V8 context. This |
| 86 // function can return 0 if the context is associated with a Document that | 88 // function can return 0 if the context is associated with a Document that |
| 87 // is not currently being displayed in a Frame. | 89 // is not currently being displayed in a Frame. |
| 88 BLINK_EXPORT static WebLocalFrame* FrameForCurrentContext(); | 90 BLINK_EXPORT static WebLocalFrame* FrameForCurrentContext(); |
| 89 | 91 |
| 90 // Returns the frame corresponding to the given context. This can return 0 | 92 // Returns the frame corresponding to the given context. This can return 0 |
| 91 // if the context is detached from the frame, or if the context doesn't | 93 // if the context is detached from the frame, or if the context doesn't |
| 92 // correspond to a frame (e.g., workers). | 94 // correspond to a frame (e.g., workers). |
| 93 BLINK_EXPORT static WebLocalFrame* FrameForContext(v8::Local<v8::Context>); | 95 BLINK_EXPORT static WebLocalFrame* FrameForContext(v8::Local<v8::Context>); |
| 94 | 96 |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 // to call these on a WebLocalFrame. | 565 // to call these on a WebLocalFrame. |
| 564 bool IsWebLocalFrame() const override = 0; | 566 bool IsWebLocalFrame() const override = 0; |
| 565 WebLocalFrame* ToWebLocalFrame() override = 0; | 567 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 566 bool IsWebRemoteFrame() const override = 0; | 568 bool IsWebRemoteFrame() const override = 0; |
| 567 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 569 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 568 }; | 570 }; |
| 569 | 571 |
| 570 } // namespace blink | 572 } // namespace blink |
| 571 | 573 |
| 572 #endif // WebLocalFrame_h | 574 #endif // WebLocalFrame_h |
| OLD | NEW |