| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 // Set the tickmarks for the frame. This will override the default tickmarks | 310 // Set the tickmarks for the frame. This will override the default tickmarks |
| 310 // generated by find results. If this is called with an empty array, the | 311 // generated by find results. If this is called with an empty array, the |
| 311 // default behavior will be restored. | 312 // default behavior will be restored. |
| 312 virtual void setTickmarks(const WebVector<WebRect>&) = 0; | 313 virtual void setTickmarks(const WebVector<WebRect>&) = 0; |
| 313 | 314 |
| 314 // Context menu ----------------------------------------------------------- | 315 // Context menu ----------------------------------------------------------- |
| 315 | 316 |
| 316 // Returns the node that the context menu opened over. | 317 // Returns the node that the context menu opened over. |
| 317 virtual WebNode contextMenuNode() const = 0; | 318 virtual WebNode contextMenuNode() const = 0; |
| 318 | 319 |
| 320 // Returns the WebFrameWidget associated with this frame if there is one or |
| 321 // nullptr otherwise. |
| 322 virtual WebWidget* frameWidget() const = 0; |
| 323 |
| 319 protected: | 324 protected: |
| 320 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 325 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
| 321 | 326 |
| 322 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 327 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 323 // to call these on a WebLocalFrame. | 328 // to call these on a WebLocalFrame. |
| 324 bool isWebLocalFrame() const override = 0; | 329 bool isWebLocalFrame() const override = 0; |
| 325 WebLocalFrame* toWebLocalFrame() override = 0; | 330 WebLocalFrame* toWebLocalFrame() override = 0; |
| 326 bool isWebRemoteFrame() const override = 0; | 331 bool isWebRemoteFrame() const override = 0; |
| 327 WebRemoteFrame* toWebRemoteFrame() override = 0; | 332 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 328 }; | 333 }; |
| 329 | 334 |
| 330 } // namespace blink | 335 } // namespace blink |
| 331 | 336 |
| 332 #endif // WebLocalFrame_h | 337 #endif // WebLocalFrame_h |
| OLD | NEW |