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

Side by Side Diff: content/shell/test_runner/app_banner_service.h

Issue 2910363002: Propagate a user gesture bit for beforeinstallprompt.prompt() (Closed)
Patch Set: Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_SHELL_TEST_RUNNER_APP_BANNER_SERVICE_H_ 5 #ifndef CONTENT_SHELL_TEST_RUNNER_APP_BANNER_SERVICE_H_
6 #define CONTENT_SHELL_TEST_RUNNER_APP_BANNER_SERVICE_H_ 6 #define CONTENT_SHELL_TEST_RUNNER_APP_BANNER_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 AppBannerService(); 24 AppBannerService();
25 ~AppBannerService() override; 25 ~AppBannerService() override;
26 26
27 blink::mojom::AppBannerControllerPtr& controller() { return controller_; } 27 blink::mojom::AppBannerControllerPtr& controller() { return controller_; }
28 void ResolvePromise(const std::string& platform); 28 void ResolvePromise(const std::string& platform);
29 void SendBannerPromptRequest(const std::vector<std::string>& platforms, 29 void SendBannerPromptRequest(const std::vector<std::string>& platforms,
30 const base::Callback<void(bool)>& callback); 30 const base::Callback<void(bool)>& callback);
31 31
32 // blink::mojom::AppBannerService overrides. 32 // blink::mojom::AppBannerService overrides.
33 void DisplayAppBanner() override; 33 void DisplayAppBanner(bool user_gesture) override;
34 34
35 private: 35 private:
36 void OnBannerPromptReply(const base::Callback<void(bool)>& callback, 36 void OnBannerPromptReply(const base::Callback<void(bool)>& callback,
37 blink::mojom::AppBannerPromptReply, 37 blink::mojom::AppBannerPromptReply,
38 const std::string& referrer); 38 const std::string& referrer);
39 39
40 mojo::Binding<blink::mojom::AppBannerService> binding_; 40 mojo::Binding<blink::mojom::AppBannerService> binding_;
41 blink::mojom::AppBannerEventPtr event_; 41 blink::mojom::AppBannerEventPtr event_;
42 blink::mojom::AppBannerControllerPtr controller_; 42 blink::mojom::AppBannerControllerPtr controller_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(AppBannerService); 44 DISALLOW_COPY_AND_ASSIGN(AppBannerService);
45 }; 45 };
46 46
47 } // namespace test_runner 47 } // namespace test_runner
48 48
49 #endif // CONTENT_SHELL_TEST_RUNNER_APP_BANNER_SERVICE_H_ 49 #endif // CONTENT_SHELL_TEST_RUNNER_APP_BANNER_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_manager.cc ('k') | content/shell/test_runner/app_banner_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698