| 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" |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 // App banner ------------------------------------------------------------- | 306 // App banner ------------------------------------------------------------- |
| 307 | 307 |
| 308 // Request to show an application install banner for the given |platforms|. | 308 // Request to show an application install banner for the given |platforms|. |
| 309 // The implementation can request the embedder to cancel the call by setting | 309 // The implementation can request the embedder to cancel the call by setting |
| 310 // |cancel| to true. | 310 // |cancel| to true. |
| 311 virtual void willShowInstallBannerPrompt( | 311 virtual void willShowInstallBannerPrompt( |
| 312 int requestId, | 312 int requestId, |
| 313 const WebVector<WebString>& platforms, | 313 const WebVector<WebString>& platforms, |
| 314 WebAppBannerPromptReply*) = 0; | 314 WebAppBannerPromptReply*) = 0; |
| 315 | 315 |
| 316 // Notifies that the web application has been installed. |
| 317 virtual void onAppInstalled() = 0; |
| 318 |
| 316 // Image reload ----------------------------------------------------------- | 319 // Image reload ----------------------------------------------------------- |
| 317 | 320 |
| 318 // If the provided node is an image, reload the image disabling Lo-Fi. | 321 // If the provided node is an image, reload the image disabling Lo-Fi. |
| 319 virtual void reloadImage(const WebNode&) = 0; | 322 virtual void reloadImage(const WebNode&) = 0; |
| 320 | 323 |
| 321 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and | 324 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and |
| 322 // reloads from the network. | 325 // reloads from the network. |
| 323 virtual void reloadLoFiImages() = 0; | 326 virtual void reloadLoFiImages() = 0; |
| 324 | 327 |
| 325 // Feature usage logging -------------------------------------------------- | 328 // Feature usage logging -------------------------------------------------- |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 // to call these on a WebLocalFrame. | 452 // to call these on a WebLocalFrame. |
| 450 bool isWebLocalFrame() const override = 0; | 453 bool isWebLocalFrame() const override = 0; |
| 451 WebLocalFrame* toWebLocalFrame() override = 0; | 454 WebLocalFrame* toWebLocalFrame() override = 0; |
| 452 bool isWebRemoteFrame() const override = 0; | 455 bool isWebRemoteFrame() const override = 0; |
| 453 WebRemoteFrame* toWebRemoteFrame() override = 0; | 456 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 454 }; | 457 }; |
| 455 | 458 |
| 456 } // namespace blink | 459 } // namespace blink |
| 457 | 460 |
| 458 #endif // WebLocalFrame_h | 461 #endif // WebLocalFrame_h |
| OLD | NEW |