Chromium Code Reviews| 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 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 enum class WebAppBannerPromptReply; | 12 enum class WebAppBannerPromptReply; |
| 13 enum class WebSandboxFlags; | 13 enum class WebSandboxFlags; |
| 14 class WebAutofillClient; | 14 class WebAutofillClient; |
| 15 class WebContentSettingsClient; | 15 class WebContentSettingsClient; |
| 16 class WebDevToolsAgent; | 16 class WebDevToolsAgent; |
| 17 class WebDevToolsAgentClient; | 17 class WebDevToolsAgentClient; |
| 18 class WebFrameClient; | 18 class WebFrameClient; |
| 19 class WebNode; | |
| 19 class WebScriptExecutionCallback; | 20 class WebScriptExecutionCallback; |
| 20 class WebSuspendableTask; | 21 class WebSuspendableTask; |
| 21 struct WebPrintPresetOptions; | 22 struct WebPrintPresetOptions; |
| 22 | 23 |
| 23 // Interface for interacting with in process frames. This contains methods that | 24 // Interface for interacting with in process frames. This contains methods that |
| 24 // require interacting with a frame's document. | 25 // require interacting with a frame's document. |
| 25 // FIXME: Move lots of methods from WebFrame in here. | 26 // FIXME: Move lots of methods from WebFrame in here. |
| 26 class WebLocalFrame : public WebFrame { | 27 class WebLocalFrame : public WebFrame { |
| 27 public: | 28 public: |
| 28 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). | 29 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 // Content Settings ------------------------------------------------------- | 126 // Content Settings ------------------------------------------------------- |
| 126 | 127 |
| 127 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; | 128 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; |
| 128 | 129 |
| 129 // App banner ------------------------------------------------------------- | 130 // App banner ------------------------------------------------------------- |
| 130 | 131 |
| 131 // Request to show an application install banner for the given |platforms|. | 132 // Request to show an application install banner for the given |platforms|. |
| 132 // The implementation can request the embedder to cancel the call by setting | 133 // The implementation can request the embedder to cancel the call by setting |
| 133 // |cancel| to true. | 134 // |cancel| to true. |
| 134 virtual void willShowInstallBannerPrompt(const WebVector<WebString>& platfor ms, WebAppBannerPromptReply*) = 0; | 135 virtual void willShowInstallBannerPrompt(const WebVector<WebString>& platfor ms, WebAppBannerPromptReply*) = 0; |
| 136 | |
| 137 // Image reload ----------------------------------------------------------- | |
| 138 | |
| 139 // Reload the image located at a particular point in the WebLocalFrame (if t here is such an image). | |
|
Nate Chapin
2015/05/06 18:40:54
This comment is out of date.
| |
| 140 virtual void reloadImage(const WebNode&) = 0; | |
| 135 }; | 141 }; |
| 136 | 142 |
| 137 } // namespace blink | 143 } // namespace blink |
| 138 | 144 |
| 139 #endif // WebLocalFrame_h | 145 #endif // WebLocalFrame_h |
| 140 | 146 |
| OLD | NEW |