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