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

Side by Side Diff: third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClient.h

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WebAppBannerClient_h
6 #define WebAppBannerClient_h
7
8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/modules/app_banner/WebAppBannerPromptResult.h"
10
11 namespace blink {
12
13 using WebAppBannerCallbacks =
14 WebCallbacks<const WebAppBannerPromptResult&, void>;
15
16 class WebAppBannerClient {
17 public:
18 virtual ~WebAppBannerClient() {}
19
20 // Ownership of the callbacks is transferred to the client.
21 virtual void registerBannerCallbacks(int requestId,
22 WebAppBannerCallbacks*) = 0;
23
24 // Tell the client that the event is being redispatched.
25 virtual void showAppBanner(int requestId) {}
26 };
27
28 } // namespace blink
29
30 #endif // WebAppBannerClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698