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

Side by Side Diff: ash/common/system/locale/locale_notification_controller.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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 2013 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 #ifndef ASH_COMMON_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_
6 #define ASH_COMMON_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_
7
8 #include <string>
9
10 #include "ash/public/interfaces/locale.mojom.h"
11 #include "base/macros.h"
12 #include "mojo/public/cpp/bindings/binding_set.h"
13
14 namespace ash {
15
16 // Observes the locale change and creates rich notification for the change.
17 class LocaleNotificationController
18 : public mojom::LocaleNotificationController {
19 public:
20 LocaleNotificationController();
21 ~LocaleNotificationController() override;
22
23 // Binds the mojom::LocaleNotificationController interface request to this
24 // object.
25 void BindRequest(mojom::LocaleNotificationControllerRequest request);
26
27 private:
28 // Overridden from mojom::LocaleNotificationController:
29 void OnLocaleChanged(const std::string& cur_locale,
30 const std::string& from_locale,
31 const std::string& to_locale,
32 const OnLocaleChangedCallback& callback) override;
33
34 std::string cur_locale_;
35 std::string from_locale_;
36 std::string to_locale_;
37
38 // Bindings for the LocaleNotificationController interface.
39 mojo::BindingSet<mojom::LocaleNotificationController> bindings_;
40
41 DISALLOW_COPY_AND_ASSIGN(LocaleNotificationController);
42 };
43
44 } // namespace ash
45
46 #endif // ASH_COMMON_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/common/system/keyboard_brightness_control_delegate.h ('k') | ash/common/system/locale/locale_notification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698