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 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // Request to show an application install banner for the given |platforms|. | 182 // Request to show an application install banner for the given |platforms|. |
183 // The implementation can request the embedder to cancel the call by setting | 183 // The implementation can request the embedder to cancel the call by setting |
184 // |cancel| to true. | 184 // |cancel| to true. |
185 virtual void willShowInstallBannerPrompt(int requestId, const WebVector<WebS
tring>& platforms, WebAppBannerPromptReply*) = 0; | 185 virtual void willShowInstallBannerPrompt(int requestId, const WebVector<WebS
tring>& platforms, WebAppBannerPromptReply*) = 0; |
186 | 186 |
187 // Image reload ----------------------------------------------------------- | 187 // Image reload ----------------------------------------------------------- |
188 | 188 |
189 // If the provided node is an image, reload the image disabling Lo-Fi. | 189 // If the provided node is an image, reload the image disabling Lo-Fi. |
190 virtual void reloadImage(const WebNode&) = 0; | 190 virtual void reloadImage(const WebNode&) = 0; |
191 | 191 |
| 192 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and |
| 193 // reloads from the network. |
| 194 virtual void reloadLoFiImages() = 0; |
| 195 |
192 // Feature usage logging -------------------------------------------------- | 196 // Feature usage logging -------------------------------------------------- |
193 | 197 |
194 virtual void didCallAddSearchProvider() = 0; | 198 virtual void didCallAddSearchProvider() = 0; |
195 virtual void didCallIsSearchProviderInstalled() = 0; | 199 virtual void didCallIsSearchProviderInstalled() = 0; |
196 | 200 |
197 // Testing ---------------------------------------------------------------- | 201 // Testing ---------------------------------------------------------------- |
198 | 202 |
199 // Registers a test interface factory. Takes ownership of the factory. | 203 // Registers a test interface factory. Takes ownership of the factory. |
200 virtual void registerTestInterface(const WebString& name, WebTestInterfaceFa
ctory*) = 0; | 204 virtual void registerTestInterface(const WebString& name, WebTestInterfaceFa
ctory*) = 0; |
201 | 205 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // default behavior will be restored. | 300 // default behavior will be restored. |
297 virtual void setTickmarks(const WebVector<WebRect>&) = 0; | 301 virtual void setTickmarks(const WebVector<WebRect>&) = 0; |
298 | 302 |
299 protected: | 303 protected: |
300 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 304 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
301 }; | 305 }; |
302 | 306 |
303 } // namespace blink | 307 } // namespace blink |
304 | 308 |
305 #endif // WebLocalFrame_h | 309 #endif // WebLocalFrame_h |
OLD | NEW |