OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ | 5 #ifndef ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ |
6 #define ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ | 6 #define ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/public/interfaces/locale.mojom.h" | 10 #include "ash/public/interfaces/locale.mojom.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // Binds the mojom::LocaleNotificationController interface request to this | 23 // Binds the mojom::LocaleNotificationController interface request to this |
24 // object. | 24 // object. |
25 void BindRequest(mojom::LocaleNotificationControllerRequest request); | 25 void BindRequest(mojom::LocaleNotificationControllerRequest request); |
26 | 26 |
27 private: | 27 private: |
28 // Overridden from mojom::LocaleNotificationController: | 28 // Overridden from mojom::LocaleNotificationController: |
29 void OnLocaleChanged(const std::string& cur_locale, | 29 void OnLocaleChanged(const std::string& cur_locale, |
30 const std::string& from_locale, | 30 const std::string& from_locale, |
31 const std::string& to_locale, | 31 const std::string& to_locale, |
32 const OnLocaleChangedCallback& callback) override; | 32 OnLocaleChangedCallback callback) override; |
33 | 33 |
34 std::string cur_locale_; | 34 std::string cur_locale_; |
35 std::string from_locale_; | 35 std::string from_locale_; |
36 std::string to_locale_; | 36 std::string to_locale_; |
37 | 37 |
38 // Bindings for the LocaleNotificationController interface. | 38 // Bindings for the LocaleNotificationController interface. |
39 mojo::BindingSet<mojom::LocaleNotificationController> bindings_; | 39 mojo::BindingSet<mojom::LocaleNotificationController> bindings_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(LocaleNotificationController); | 41 DISALLOW_COPY_AND_ASSIGN(LocaleNotificationController); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace ash | 44 } // namespace ash |
45 | 45 |
46 #endif // ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ | 46 #endif // ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ |
OLD | NEW |