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

Side by Side Diff: ash/public/interfaces/locale.mojom

Issue 2420753002: ash: Use mojo LocaleNotificationController interface. (Closed)
Patch Set: nit 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 module ash.mojom;
6
7 // Sent as the response to LocaleNotificationController.OnLocaleChanged().
8 enum LocaleNotificationResult {
9 ACCEPT,
10 REVERT
11 };
12
13 // Used by Chrome to make ash show a notification.
14 interface LocaleNotificationController {
15 // Displays a notification in ash prompting the user whether to accept a
16 // change in the locale. If the user clicks the accept button (or closes the
17 // notification), OnLocaleChange() returns ACCEPT. If the user clicks the
18 // revert button, returns REVERT.
19 OnLocaleChanged(string current, string from, string to)
20 => (LocaleNotificationResult result);
21 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698