| 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" |
| 11 #include "WebHistoryItem.h" | 11 #include "WebHistoryItem.h" |
| 12 #include "mojo/public/cpp/system/message_pipe.h" |
| 12 #include "public/platform/WebCachePolicy.h" | 13 #include "public/platform/WebCachePolicy.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 17 namespace mojom { |
| 18 enum class AppBannerPromptReply; |
| 19 } |
| 20 |
| 16 class WebAutofillClient; | 21 class WebAutofillClient; |
| 17 class WebContentSettingsClient; | 22 class WebContentSettingsClient; |
| 18 class WebDevToolsAgent; | 23 class WebDevToolsAgent; |
| 19 class WebDevToolsAgentClient; | 24 class WebDevToolsAgentClient; |
| 20 class WebDoubleSize; | 25 class WebDoubleSize; |
| 21 class WebFrameClient; | 26 class WebFrameClient; |
| 22 class WebFrameWidget; | 27 class WebFrameWidget; |
| 23 class WebRange; | 28 class WebRange; |
| 24 class WebScriptExecutionCallback; | 29 class WebScriptExecutionCallback; |
| 25 class WebSuspendableTask; | 30 class WebSuspendableTask; |
| 26 enum class WebAppBannerPromptReply; | |
| 27 enum class WebCachePolicy; | 31 enum class WebCachePolicy; |
| 28 enum class WebSandboxFlags; | 32 enum class WebSandboxFlags; |
| 29 enum class WebTreeScopeType; | 33 enum class WebTreeScopeType; |
| 30 struct WebFindOptions; | 34 struct WebFindOptions; |
| 31 struct WebFloatRect; | 35 struct WebFloatRect; |
| 32 struct WebPrintPresetOptions; | 36 struct WebPrintPresetOptions; |
| 33 | 37 |
| 34 // Interface for interacting with in process frames. This contains methods that | 38 // Interface for interacting with in process frames. This contains methods that |
| 35 // require interacting with a frame's document. | 39 // require interacting with a frame's document. |
| 36 // FIXME: Move lots of methods from WebFrame in here. | 40 // FIXME: Move lots of methods from WebFrame in here. |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 virtual bool isSpellCheckingEnabled() const = 0; | 302 virtual bool isSpellCheckingEnabled() const = 0; |
| 299 virtual void requestTextChecking(const WebElement&) = 0; | 303 virtual void requestTextChecking(const WebElement&) = 0; |
| 300 virtual void removeSpellingMarkers() = 0; | 304 virtual void removeSpellingMarkers() = 0; |
| 301 | 305 |
| 302 // Content Settings ------------------------------------------------------- | 306 // Content Settings ------------------------------------------------------- |
| 303 | 307 |
| 304 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; | 308 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; |
| 305 | 309 |
| 306 // App banner ------------------------------------------------------------- | 310 // App banner ------------------------------------------------------------- |
| 307 | 311 |
| 308 // Request to show an application install banner for the given |platforms|. | 312 // Request to show an app install banner for the given |platforms|. The |
| 309 // The implementation can request the embedder to cancel the call by setting | 313 // ScopedMessagePipeHandles represent the raw connections to and from an |
| 310 // |cancel| to true. | 314 // AppBannerService. Setting |AppBannerPromptReply| to |
| 315 // mojom::AppBannerPromptReply::CANCEL will cancel the banner. |
| 311 virtual void willShowInstallBannerPrompt( | 316 virtual void willShowInstallBannerPrompt( |
| 312 int requestId, | 317 mojo::ScopedMessagePipeHandle serviceHandle, |
| 318 mojo::ScopedMessagePipeHandle eventHandle, |
| 313 const WebVector<WebString>& platforms, | 319 const WebVector<WebString>& platforms, |
| 314 WebAppBannerPromptReply*) = 0; | 320 mojom::AppBannerPromptReply*) = 0; |
| 315 | 321 |
| 316 // Image reload ----------------------------------------------------------- | 322 // Image reload ----------------------------------------------------------- |
| 317 | 323 |
| 318 // If the provided node is an image, reload the image disabling Lo-Fi. | 324 // If the provided node is an image, reload the image disabling Lo-Fi. |
| 319 virtual void reloadImage(const WebNode&) = 0; | 325 virtual void reloadImage(const WebNode&) = 0; |
| 320 | 326 |
| 321 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and | 327 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and |
| 322 // reloads from the network. | 328 // reloads from the network. |
| 323 virtual void reloadLoFiImages() = 0; | 329 virtual void reloadLoFiImages() = 0; |
| 324 | 330 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 // to call these on a WebLocalFrame. | 455 // to call these on a WebLocalFrame. |
| 450 bool isWebLocalFrame() const override = 0; | 456 bool isWebLocalFrame() const override = 0; |
| 451 WebLocalFrame* toWebLocalFrame() override = 0; | 457 WebLocalFrame* toWebLocalFrame() override = 0; |
| 452 bool isWebRemoteFrame() const override = 0; | 458 bool isWebRemoteFrame() const override = 0; |
| 453 WebRemoteFrame* toWebRemoteFrame() override = 0; | 459 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 454 }; | 460 }; |
| 455 | 461 |
| 456 } // namespace blink | 462 } // namespace blink |
| 457 | 463 |
| 458 #endif // WebLocalFrame_h | 464 #endif // WebLocalFrame_h |
| OLD | NEW |