Chromium Code Reviews| Index: ash/public/interfaces/locale.mojom |
| diff --git a/ash/public/interfaces/locale.mojom b/ash/public/interfaces/locale.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..53d7b8930d591807805918aa45ece15d75c0741a |
| --- /dev/null |
| +++ b/ash/public/interfaces/locale.mojom |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2016 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. |
| + |
| +module ash.mojom; |
| + |
| +// Sent as the response to LocaleNotificationController.OnLocaleChanged(). |
| +enum LocaleNotificationResult { |
| + ACCEPT, |
| + REVERT |
| +}; |
| + |
| +// Used by Chrome to make ash show a notification. |
| +interface LocaleNotificationController { |
| + // Displays a notification in ash prompting the user on whether to accept a |
|
Tom Sepez
2016/10/17 23:48:04
nit: s/on//.
Elliot Glaysher
2016/10/17 23:57:02
Done.
|
| + // change in the locale. If the user clicks the accept button (or closes the |
| + // notification), OnLocaleChange() returns ACCEPT. If the user clicks the |
| + // revert button, returns REVERT. |
| + OnLocaleChanged(string current, string from, string to) |
| + => (LocaleNotificationResult result); |
| +}; |