| OLD | NEW |
| (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 | |
| OLD | NEW |