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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Remove WebAppBannerPromptResult 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 "mojo/public/cpp/system/message_pipe.h"
12 #include "public/platform/WebCachePolicy.h" 13 #include "public/platform/WebCachePolicy.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
17 namespace mojom {
18 enum class AppBannerPromptReply;
19 }
20
16 class WebAutofillClient; 21 class WebAutofillClient;
17 class WebContentSettingsClient; 22 class WebContentSettingsClient;
18 class WebDevToolsAgent; 23 class WebDevToolsAgent;
19 class WebDevToolsAgentClient; 24 class WebDevToolsAgentClient;
20 class WebDoubleSize; 25 class WebDoubleSize;
21 class WebFrameClient; 26 class WebFrameClient;
22 class WebFrameWidget; 27 class WebFrameWidget;
23 class WebRange; 28 class WebRange;
24 class WebScriptExecutionCallback; 29 class WebScriptExecutionCallback;
25 class WebSuspendableTask; 30 class WebSuspendableTask;
26 enum class WebAppBannerPromptReply;
27 enum class WebCachePolicy; 31 enum class WebCachePolicy;
28 enum class WebSandboxFlags; 32 enum class WebSandboxFlags;
29 enum class WebTreeScopeType; 33 enum class WebTreeScopeType;
30 struct WebFindOptions; 34 struct WebFindOptions;
31 struct WebFloatRect; 35 struct WebFloatRect;
32 struct WebPrintPresetOptions; 36 struct WebPrintPresetOptions;
33 37
34 // Interface for interacting with in process frames. This contains methods that 38 // Interface for interacting with in process frames. This contains methods that
35 // require interacting with a frame's document. 39 // require interacting with a frame's document.
36 // FIXME: Move lots of methods from WebFrame in here. 40 // FIXME: Move lots of methods from WebFrame in here.
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 virtual bool isSpellCheckingEnabled() const = 0; 293 virtual bool isSpellCheckingEnabled() const = 0;
290 virtual void requestTextChecking(const WebElement&) = 0; 294 virtual void requestTextChecking(const WebElement&) = 0;
291 virtual void removeSpellingMarkers() = 0; 295 virtual void removeSpellingMarkers() = 0;
292 296
293 // Content Settings ------------------------------------------------------- 297 // Content Settings -------------------------------------------------------
294 298
295 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; 299 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0;
296 300
297 // App banner ------------------------------------------------------------- 301 // App banner -------------------------------------------------------------
298 302
299 // Request to show an application install banner for the given |platforms|. 303 // Request to show an app install banner for the given |platforms|. The
300 // The implementation can request the embedder to cancel the call by setting 304 // ScopedMessagePipeHandles represent the raw connections to and from an
301 // |cancel| to true. 305 // AppBannerService. Setting |AppBannerPromptReply| to
306 // mojom::AppBannerPromptReply::CANCEL will cancel the banner.
302 virtual void willShowInstallBannerPrompt( 307 virtual void willShowInstallBannerPrompt(
303 int requestId, 308 mojo::ScopedMessagePipeHandle serviceHandle,
309 mojo::ScopedMessagePipeHandle eventHandle,
304 const WebVector<WebString>& platforms, 310 const WebVector<WebString>& platforms,
305 WebAppBannerPromptReply*) = 0; 311 mojom::AppBannerPromptReply*) = 0;
306 312
307 // Image reload ----------------------------------------------------------- 313 // Image reload -----------------------------------------------------------
308 314
309 // 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.
310 virtual void reloadImage(const WebNode&) = 0; 316 virtual void reloadImage(const WebNode&) = 0;
311 317
312 // 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
313 // reloads from the network. 319 // reloads from the network.
314 virtual void reloadLoFiImages() = 0; 320 virtual void reloadLoFiImages() = 0;
315 321
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 // to call these on a WebLocalFrame. 446 // to call these on a WebLocalFrame.
441 bool isWebLocalFrame() const override = 0; 447 bool isWebLocalFrame() const override = 0;
442 WebLocalFrame* toWebLocalFrame() override = 0; 448 WebLocalFrame* toWebLocalFrame() override = 0;
443 bool isWebRemoteFrame() const override = 0; 449 bool isWebRemoteFrame() const override = 0;
444 WebRemoteFrame* toWebRemoteFrame() override = 0; 450 WebRemoteFrame* toWebRemoteFrame() override = 0;
445 }; 451 };
446 452
447 } // namespace blink 453 } // namespace blink
448 454
449 #endif // WebLocalFrame_h 455 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698