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

Unified Diff: Source/modules/app_banner/AppBannerController.h

Issue 942913002: [AppBanner] Blink implementation of an event when an install banner is shown. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/app_banner/AppBannerController.h
diff --git a/Source/modules/app_banner/AppBannerController.h b/Source/modules/app_banner/AppBannerController.h
new file mode 100644
index 0000000000000000000000000000000000000000..a4f0829325ccf783570537ef1428cdd92a302f4a
--- /dev/null
+++ b/Source/modules/app_banner/AppBannerController.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 AppBannerController_h
+#define AppBannerController_h
+
+namespace blink {
+
+enum class WebAppBannerPromptReply;
+class LocalFrame;
+class WebString;
+
+// FIXME: unless userChoice ends up implemented, this class should not exist and
+// a regular static method could be used instead.
+class AppBannerController final {
+public:
+ static void willShowInstallBannerPrompt(LocalFrame*, const WebString& platform, WebAppBannerPromptReply*);
+
+private:
+ AppBannerController() = delete;
+ ~AppBannerController() = delete;
+};
+
+} // namespace blink
+
+#endif // AppBannerController_h

Powered by Google App Engine
This is Rietveld 408576698