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

Unified Diff: ash/public/interfaces/locale.mojom

Issue 2420753002: ash: Use mojo LocaleNotificationController interface. (Closed)
Patch Set: Uniquify callbacks Created 4 years, 2 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
« no previous file with comments | « ash/public/interfaces/BUILD.gn ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..756430d81f5b14b212a4f7f3826f50d5819b0f38
--- /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 whether to accept a
+ // 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);
+};
« no previous file with comments | « ash/public/interfaces/BUILD.gn ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698