Chromium Code Reviews| Index: Source/modules/app_banner/AppBannerCallbacks.h |
| diff --git a/Source/modules/app_banner/AppBannerCallbacks.h b/Source/modules/app_banner/AppBannerCallbacks.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d30bba9ff1daa47aa1a9c51d638bc787225c1022 |
| --- /dev/null |
| +++ b/Source/modules/app_banner/AppBannerCallbacks.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef AppBannerCallbacks_h |
| +#define AppBannerCallbacks_h |
| + |
| +#include "modules/app_banner/BeforeInstallPromptEvent.h" |
| +#include "public/platform/modules/app_banner/WebAppBannerClient.h" |
| + |
| +namespace blink { |
| + |
| +class AppBannerCallbacks : public WebAppBannerCallbacks { |
| +public: |
| + AppBannerCallbacks(BeforeInstallPromptEvent::UserChoiceProperty*); |
|
yhirano
2015/07/24 03:41:16
+explicit
dominickn
2015/07/24 05:02:09
Done.
|
| + virtual ~AppBannerCallbacks() { } |
|
yhirano
2015/07/24 03:41:16
"~AppBannerCallbacks() override" is more preferabl
dominickn
2015/07/24 05:02:09
Done.
|
| + |
| + // WebAppBannerCallbacks overrides. |
| + void onSuccess(WebAppBannerPromptResult*) override; |
| + |
| +private: |
| + Persistent<BeforeInstallPromptEvent::UserChoiceProperty> m_userChoice; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // AppBannerCallbacks_h |