| 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 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class WebAutofillClient; | 13 class WebAutofillClient; |
| 14 class WebContentSettingsClient; | 14 class WebContentSettingsClient; |
| 15 class WebDevToolsAgent; | 15 class WebDevToolsAgent; |
| 16 class WebDevToolsAgentClient; | 16 class WebDevToolsAgentClient; |
| 17 class WebFrameClient; | 17 class WebFrameClient; |
| 18 class WebNode; | 18 class WebNode; |
| 19 class WebScriptExecutionCallback; | 19 class WebScriptExecutionCallback; |
| 20 class WebSuspendableTask; | 20 class WebSuspendableTask; |
| 21 class WebWidget; |
| 21 enum class WebAppBannerPromptReply; | 22 enum class WebAppBannerPromptReply; |
| 22 enum class WebCachePolicy; | 23 enum class WebCachePolicy; |
| 23 enum class WebSandboxFlags; | 24 enum class WebSandboxFlags; |
| 24 enum class WebTreeScopeType; | 25 enum class WebTreeScopeType; |
| 25 struct WebPrintPresetOptions; | 26 struct WebPrintPresetOptions; |
| 26 | 27 |
| 27 // Interface for interacting with in process frames. This contains methods that | 28 // Interface for interacting with in process frames. This contains methods that |
| 28 // require interacting with a frame's document. | 29 // require interacting with a frame's document. |
| 29 // FIXME: Move lots of methods from WebFrame in here. | 30 // FIXME: Move lots of methods from WebFrame in here. |
| 30 class WebLocalFrame : public WebFrame { | 31 class WebLocalFrame : public WebFrame { |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // Set the tickmarks for the frame. This will override the default tickmarks | 315 // Set the tickmarks for the frame. This will override the default tickmarks |
| 315 // generated by find results. If this is called with an empty array, the | 316 // generated by find results. If this is called with an empty array, the |
| 316 // default behavior will be restored. | 317 // default behavior will be restored. |
| 317 virtual void setTickmarks(const WebVector<WebRect>&) = 0; | 318 virtual void setTickmarks(const WebVector<WebRect>&) = 0; |
| 318 | 319 |
| 319 // Context menu ----------------------------------------------------------- | 320 // Context menu ----------------------------------------------------------- |
| 320 | 321 |
| 321 // Returns the node that the context menu opened over. | 322 // Returns the node that the context menu opened over. |
| 322 virtual WebNode contextMenuNode() const = 0; | 323 virtual WebNode contextMenuNode() const = 0; |
| 323 | 324 |
| 325 // Returns the WebFrameWidget associated with this frame if there is one or |
| 326 // nullptr otherwise. |
| 327 virtual WebWidget* frameWidget() const = 0; |
| 328 |
| 324 protected: | 329 protected: |
| 325 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 330 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
| 326 | 331 |
| 327 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 332 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 328 // to call these on a WebLocalFrame. | 333 // to call these on a WebLocalFrame. |
| 329 bool isWebLocalFrame() const override = 0; | 334 bool isWebLocalFrame() const override = 0; |
| 330 WebLocalFrame* toWebLocalFrame() override = 0; | 335 WebLocalFrame* toWebLocalFrame() override = 0; |
| 331 bool isWebRemoteFrame() const override = 0; | 336 bool isWebRemoteFrame() const override = 0; |
| 332 WebRemoteFrame* toWebRemoteFrame() override = 0; | 337 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 333 }; | 338 }; |
| 334 | 339 |
| 335 } // namespace blink | 340 } // namespace blink |
| 336 | 341 |
| 337 #endif // WebLocalFrame_h | 342 #endif // WebLocalFrame_h |
| OLD | NEW |