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

Side by Side Diff: Source/modules/app_banner/AppBannerController.h

Issue 1089813002: Change beforeinstallprompt event to take an array of platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
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 namespace blink { 8 namespace blink {
9 9
10 enum class WebAppBannerPromptReply; 10 enum class WebAppBannerPromptReply;
11 class LocalFrame; 11 class LocalFrame;
12 class WebString; 12 class WebString;
13 template <typename T> class WebVector;
13 14
14 // FIXME: unless userChoice ends up implemented, this class should not exist and 15 // FIXME: unless userChoice ends up implemented, this class should not exist and
15 // a regular static method could be used instead. 16 // a regular static method could be used instead.
16 class AppBannerController final { 17 class AppBannerController final {
17 public: 18 public:
18 static void willShowInstallBannerPrompt(LocalFrame*, const WebString& platfo rm, WebAppBannerPromptReply*); 19 static void willShowInstallBannerPrompt(LocalFrame*, const WebVector<WebStri ng>& platforms, WebAppBannerPromptReply*);
19 20
20 private: 21 private:
21 AppBannerController() = delete; 22 AppBannerController() = delete;
22 ~AppBannerController() = delete; 23 ~AppBannerController() = delete;
23 }; 24 };
24 25
25 } // namespace blink 26 } // namespace blink
26 27
27 #endif // AppBannerController_h 28 #endif // AppBannerController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698