| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Returns the frame inside a given frame or iframe element. Returns 0 if | 67 // Returns the frame inside a given frame or iframe element. Returns 0 if |
| 68 // the given element is not a frame, iframe or if the frame is empty. | 68 // the given element is not a frame, iframe or if the frame is empty. |
| 69 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&); | 69 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&); |
| 70 | 70 |
| 71 // Initialization --------------------------------------------------------- | 71 // Initialization --------------------------------------------------------- |
| 72 | 72 |
| 73 virtual void setAutofillClient(WebAutofillClient*) = 0; | 73 virtual void setAutofillClient(WebAutofillClient*) = 0; |
| 74 virtual WebAutofillClient* autofillClient() = 0; | 74 virtual WebAutofillClient* autofillClient() = 0; |
| 75 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; | 75 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; |
| 76 virtual WebDevToolsAgent* devToolsAgent() = 0; | 76 virtual WebDevToolsAgent* devToolsAgent() = 0; |
| 77 virtual void startAgents() = 0; |
| 77 | 78 |
| 78 // Hierarchy ---------------------------------------------------------- | 79 // Hierarchy ---------------------------------------------------------- |
| 79 | 80 |
| 80 // Get the highest-level LocalFrame in this frame's in-process subtree. | 81 // Get the highest-level LocalFrame in this frame's in-process subtree. |
| 81 virtual WebLocalFrame* localRoot() = 0; | 82 virtual WebLocalFrame* localRoot() = 0; |
| 82 | 83 |
| 83 // Navigation Ping -------------------------------------------------------- | 84 // Navigation Ping -------------------------------------------------------- |
| 84 | 85 |
| 85 virtual void sendPings(const WebURL& destinationURL) = 0; | 86 virtual void sendPings(const WebURL& destinationURL) = 0; |
| 86 | 87 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // to call these on a WebLocalFrame. | 457 // to call these on a WebLocalFrame. |
| 457 bool isWebLocalFrame() const override = 0; | 458 bool isWebLocalFrame() const override = 0; |
| 458 WebLocalFrame* toWebLocalFrame() override = 0; | 459 WebLocalFrame* toWebLocalFrame() override = 0; |
| 459 bool isWebRemoteFrame() const override = 0; | 460 bool isWebRemoteFrame() const override = 0; |
| 460 WebRemoteFrame* toWebRemoteFrame() override = 0; | 461 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 461 }; | 462 }; |
| 462 | 463 |
| 463 } // namespace blink | 464 } // namespace blink |
| 464 | 465 |
| 465 #endif // WebLocalFrame_h | 466 #endif // WebLocalFrame_h |
| OLD | NEW |