| OLD | NEW |
| 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 module blink.mojom; | 5 module blink.mojom; |
| 6 | 6 |
| 7 enum AppBannerPromptReply { | 7 enum AppBannerPromptReply { |
| 8 NONE, | 8 NONE, |
| 9 CANCEL, | 9 CANCEL, |
| 10 }; | 10 }; |
| 11 | 11 |
| 12 interface AppBannerController { | 12 interface AppBannerController { |
| 13 // The browser asks the renderer if the app banner should be shown. | 13 // The browser asks the renderer if the app banner should be shown. |
| 14 BannerPromptRequest(AppBannerService service, AppBannerEvent& event, | 14 BannerPromptRequest(AppBannerService service, AppBannerEvent& event, |
| 15 array<string> platform) => | 15 array<string> platform) => |
| 16 (AppBannerPromptReply reply, string referrer); | 16 (AppBannerPromptReply reply, string referrer); |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 interface AppBannerEvent { | 19 interface AppBannerEvent { |
| 20 // The browser informs the renderer the response to the app banner. | 20 // The browser informs the renderer the response to the app banner. |
| 21 BannerAccepted(string platform); | 21 BannerAccepted(string platform); |
| 22 BannerDismissed(); | 22 BannerDismissed(); |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 interface AppBannerService { | 25 interface AppBannerService { |
| 26 // The renderer asks the browser to display a previously offered app banner. | 26 // The renderer asks the browser to display a previously offered app banner. |
| 27 DisplayAppBanner(); | 27 DisplayAppBanner(bool user_gesture); |
| 28 }; | 28 }; |
| OLD | NEW |