Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Fix Win clang compile Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 namespace mojom {
17 enum class AppBannerPromptReply;
18 }
19
16 class WebAutofillClient; 20 class WebAutofillClient;
17 class WebContentSettingsClient; 21 class WebContentSettingsClient;
18 class WebDevToolsAgent; 22 class WebDevToolsAgent;
19 class WebDevToolsAgentClient; 23 class WebDevToolsAgentClient;
20 class WebDoubleSize; 24 class WebDoubleSize;
21 class WebFrameClient; 25 class WebFrameClient;
22 class WebFrameWidget; 26 class WebFrameWidget;
23 class WebRange; 27 class WebRange;
24 class WebScriptExecutionCallback; 28 class WebScriptExecutionCallback;
25 class WebSuspendableTask; 29 class WebSuspendableTask;
26 enum class WebAppBannerPromptReply;
27 enum class WebCachePolicy; 30 enum class WebCachePolicy;
28 enum class WebSandboxFlags; 31 enum class WebSandboxFlags;
29 enum class WebTreeScopeType; 32 enum class WebTreeScopeType;
30 struct WebFindOptions; 33 struct WebFindOptions;
31 struct WebFloatRect; 34 struct WebFloatRect;
32 struct WebPrintPresetOptions; 35 struct WebPrintPresetOptions;
33 36
34 // Interface for interacting with in process frames. This contains methods that 37 // Interface for interacting with in process frames. This contains methods that
35 // require interacting with a frame's document. 38 // require interacting with a frame's document.
36 // FIXME: Move lots of methods from WebFrame in here. 39 // FIXME: Move lots of methods from WebFrame in here.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 virtual void removeSpellingMarkers() = 0; 294 virtual void removeSpellingMarkers() = 0;
292 295
293 // Content Settings ------------------------------------------------------- 296 // Content Settings -------------------------------------------------------
294 297
295 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; 298 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0;
296 299
297 // App banner ------------------------------------------------------------- 300 // App banner -------------------------------------------------------------
298 301
299 // Request to show an application install banner for the given |platforms|. 302 // Request to show an application install banner for the given |platforms|.
300 // The implementation can request the embedder to cancel the call by setting 303 // The implementation can request the embedder to cancel the call by setting
301 // |cancel| to true. 304 // |reply| to mojom::AppBannerPromptReply::CANCEL.
302 virtual void willShowInstallBannerPrompt( 305 virtual void willShowInstallBannerPrompt(
303 int requestId, 306 int requestId,
304 const WebVector<WebString>& platforms, 307 const WebVector<WebString>& platforms,
305 WebAppBannerPromptReply*) = 0; 308 mojom::AppBannerPromptReply*) = 0;
306 309
307 // Image reload ----------------------------------------------------------- 310 // Image reload -----------------------------------------------------------
308 311
309 // If the provided node is an image, reload the image disabling Lo-Fi. 312 // If the provided node is an image, reload the image disabling Lo-Fi.
310 virtual void reloadImage(const WebNode&) = 0; 313 virtual void reloadImage(const WebNode&) = 0;
311 314
312 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and 315 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and
313 // reloads from the network. 316 // reloads from the network.
314 virtual void reloadLoFiImages() = 0; 317 virtual void reloadLoFiImages() = 0;
315 318
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 // to call these on a WebLocalFrame. 443 // to call these on a WebLocalFrame.
441 bool isWebLocalFrame() const override = 0; 444 bool isWebLocalFrame() const override = 0;
442 WebLocalFrame* toWebLocalFrame() override = 0; 445 WebLocalFrame* toWebLocalFrame() override = 0;
443 bool isWebRemoteFrame() const override = 0; 446 bool isWebRemoteFrame() const override = 0;
444 WebRemoteFrame* toWebRemoteFrame() override = 0; 447 WebRemoteFrame* toWebRemoteFrame() override = 0;
445 }; 448 };
446 449
447 } // namespace blink 450 } // namespace blink
448 451
449 #endif // WebLocalFrame_h 452 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698