| OLD | NEW |
| 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 "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 #include "wtf/Noncopyable.h" | |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 | 12 |
| 14 enum class WebAppBannerPromptReply; | 13 namespace mojom { |
| 14 enum class AppBannerPromptReply; |
| 15 } |
| 16 |
| 15 class LocalFrame; | 17 class LocalFrame; |
| 16 class WebAppBannerClient; | |
| 17 class WebString; | 18 class WebString; |
| 18 template <typename T> | 19 template <typename T> |
| 19 class WebVector; | 20 class WebVector; |
| 20 | 21 |
| 21 // FIXME: unless userChoice ends up implemented, this class should not exist and | 22 // FIXME: unless userChoice ends up implemented, this class should not exist and |
| 22 // a regular static method could be used instead. | 23 // a regular static method could be used instead. |
| 23 class MODULES_EXPORT AppBannerController final { | 24 class MODULES_EXPORT AppBannerController final { |
| 24 STATIC_ONLY(AppBannerController); | 25 STATIC_ONLY(AppBannerController); |
| 25 | 26 |
| 26 public: | 27 public: |
| 27 static void willShowInstallBannerPrompt(int requestId, | 28 static void willShowInstallBannerPrompt(LocalFrame*, |
| 28 WebAppBannerClient*, | 29 int requestId, |
| 29 LocalFrame*, | |
| 30 const WebVector<WebString>& platforms, | 30 const WebVector<WebString>& platforms, |
| 31 WebAppBannerPromptReply*); | 31 mojom::AppBannerPromptReply*); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace blink | 34 } // namespace blink |
| 35 | 35 |
| 36 #endif // AppBannerController_h | 36 #endif // AppBannerController_h |
| OLD | NEW |