| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 virtual void SetAutofillClient(WebAutofillClient*) = 0; | 109 virtual void SetAutofillClient(WebAutofillClient*) = 0; |
| 110 virtual WebAutofillClient* AutofillClient() = 0; | 110 virtual WebAutofillClient* AutofillClient() = 0; |
| 111 virtual void SetDevToolsAgentClient(WebDevToolsAgentClient*) = 0; | 111 virtual void SetDevToolsAgentClient(WebDevToolsAgentClient*) = 0; |
| 112 virtual WebDevToolsAgent* DevToolsAgent() = 0; | 112 virtual WebDevToolsAgent* DevToolsAgent() = 0; |
| 113 | 113 |
| 114 // Hierarchy ---------------------------------------------------------- | 114 // Hierarchy ---------------------------------------------------------- |
| 115 | 115 |
| 116 // Get the highest-level LocalFrame in this frame's in-process subtree. | 116 // Get the highest-level LocalFrame in this frame's in-process subtree. |
| 117 virtual WebLocalFrame* LocalRoot() = 0; | 117 virtual WebLocalFrame* LocalRoot() = 0; |
| 118 | 118 |
| 119 // Returns the frame identified by the given name. This method supports |
| 120 // pseudo-names like _self, _top, and _blank and otherwise performs the same |
| 121 // kind of lookup what |window.open(..., name)| would in Javascript. |
| 122 virtual WebFrame* FindFrameByName(const WebString& name) = 0; |
| 123 |
| 119 // Navigation Ping -------------------------------------------------------- | 124 // Navigation Ping -------------------------------------------------------- |
| 120 | 125 |
| 121 virtual void SendPings(const WebURL& destination_url) = 0; | 126 virtual void SendPings(const WebURL& destination_url) = 0; |
| 122 | 127 |
| 123 // Navigation ---------------------------------------------------------- | 128 // Navigation ---------------------------------------------------------- |
| 124 | 129 |
| 125 // Runs beforeunload handlers for this frame and returns the value returned | 130 // Runs beforeunload handlers for this frame and returns the value returned |
| 126 // by handlers. | 131 // by handlers. |
| 127 // Note: this may lead to the destruction of the frame. | 132 // Note: this may lead to the destruction of the frame. |
| 128 virtual bool DispatchBeforeUnloadEvent(bool is_reload) = 0; | 133 virtual bool DispatchBeforeUnloadEvent(bool is_reload) = 0; |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 // to call these on a WebLocalFrame. | 576 // to call these on a WebLocalFrame. |
| 572 bool IsWebLocalFrame() const override = 0; | 577 bool IsWebLocalFrame() const override = 0; |
| 573 WebLocalFrame* ToWebLocalFrame() override = 0; | 578 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 574 bool IsWebRemoteFrame() const override = 0; | 579 bool IsWebRemoteFrame() const override = 0; |
| 575 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 580 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 576 }; | 581 }; |
| 577 | 582 |
| 578 } // namespace blink | 583 } // namespace blink |
| 579 | 584 |
| 580 #endif // WebLocalFrame_h | 585 #endif // WebLocalFrame_h |
| OLD | NEW |