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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual void setAutofillClient(WebAutofillClient*) = 0; | 60 virtual void setAutofillClient(WebAutofillClient*) = 0; |
61 virtual WebAutofillClient* autofillClient() = 0; | 61 virtual WebAutofillClient* autofillClient() = 0; |
62 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; | 62 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; |
63 virtual WebDevToolsAgent* devToolsAgent() = 0; | 63 virtual WebDevToolsAgent* devToolsAgent() = 0; |
64 | 64 |
65 // Hierarchy ---------------------------------------------------------- | 65 // Hierarchy ---------------------------------------------------------- |
66 | 66 |
67 // Get the highest-level LocalFrame in this frame's in-process subtree. | 67 // Get the highest-level LocalFrame in this frame's in-process subtree. |
68 virtual WebLocalFrame* localRoot() = 0; | 68 virtual WebLocalFrame* localRoot() = 0; |
69 | 69 |
70 // Returns the previous/next local frame in "frame traversal order", | |
71 // optionally wrapping around. | |
72 virtual WebLocalFrame* traversePreviousLocal(bool wrap) const = 0; | |
73 virtual WebLocalFrame* traverseNextLocal(bool wrap) const = 0; | |
74 | |
75 // Navigation Ping -------------------------------------------------------- | 70 // Navigation Ping -------------------------------------------------------- |
76 | 71 |
77 virtual void sendPings(const WebURL& destinationURL) = 0; | 72 virtual void sendPings(const WebURL& destinationURL) = 0; |
78 | 73 |
79 // Navigation ---------------------------------------------------------- | 74 // Navigation ---------------------------------------------------------- |
80 | 75 |
81 // Runs beforeunload handlers for this frame and returns the value returned | 76 // Runs beforeunload handlers for this frame and returns the value returned |
82 // by handlers. | 77 // by handlers. |
83 // Note: this may lead to the destruction of the frame. | 78 // Note: this may lead to the destruction of the frame. |
84 virtual bool dispatchBeforeUnloadEvent(bool isReload) = 0; | 79 virtual bool dispatchBeforeUnloadEvent(bool isReload) = 0; |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 // to call these on a WebLocalFrame. | 345 // to call these on a WebLocalFrame. |
351 bool isWebLocalFrame() const override = 0; | 346 bool isWebLocalFrame() const override = 0; |
352 WebLocalFrame* toWebLocalFrame() override = 0; | 347 WebLocalFrame* toWebLocalFrame() override = 0; |
353 bool isWebRemoteFrame() const override = 0; | 348 bool isWebRemoteFrame() const override = 0; |
354 WebRemoteFrame* toWebRemoteFrame() override = 0; | 349 WebRemoteFrame* toWebRemoteFrame() override = 0; |
355 }; | 350 }; |
356 | 351 |
357 } // namespace blink | 352 } // namespace blink |
358 | 353 |
359 #endif // WebLocalFrame_h | 354 #endif // WebLocalFrame_h |
OLD | NEW |