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

Side by Side Diff: third_party/WebKit/Source/modules/app_banner/AppBannerController.h

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Rebase 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 AppBannerController_h 5 #ifndef AppBannerController_h
6 #define AppBannerController_h 6 #define AppBannerController_h
7 7
8 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "mojo/public/cpp/system/message_pipe.h"
9 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
10 #include "wtf/Noncopyable.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 enum class WebAppBannerPromptReply; 14 namespace mojom {
15 enum class AppBannerPromptReply;
16 }
17
15 class LocalFrame; 18 class LocalFrame;
16 class WebAppBannerClient;
17 class WebString; 19 class WebString;
18 template <typename T> 20 template <typename T>
19 class WebVector; 21 class WebVector;
20 22
21 // FIXME: unless userChoice ends up implemented, this class should not exist and 23 // FIXME: unless userChoice ends up implemented, this class should not exist and
22 // a regular static method could be used instead. 24 // a regular static method could be used instead.
23 class MODULES_EXPORT AppBannerController final { 25 class MODULES_EXPORT AppBannerController final {
24 STATIC_ONLY(AppBannerController); 26 STATIC_ONLY(AppBannerController);
25 27
26 public: 28 public:
27 static void willShowInstallBannerPrompt(int requestId, 29 static void willShowInstallBannerPrompt(
dcheng 2016/10/07 07:03:16 Or a TODO here would work as well (maybe better, s
28 WebAppBannerClient*, 30 LocalFrame*,
29 LocalFrame*, 31 mojo::ScopedMessagePipeHandle serviceHandle,
30 const WebVector<WebString>& platforms, 32 mojo::ScopedMessagePipeHandle eventHandle,
31 WebAppBannerPromptReply*); 33 const WebVector<WebString>& platforms,
34 mojom::AppBannerPromptReply*);
32 }; 35 };
33 36
34 } // namespace blink 37 } // namespace blink
35 38
36 #endif // AppBannerController_h 39 #endif // AppBannerController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698