| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "ash/ash_export.h" | 5 #include "base/observer_list.h" |
| 6 #include "ui/chromeos/ime/input_method_menu_item.h" |
| 7 #include "ui/chromeos/ui_chromeos_export.h" |
| 6 | 8 |
| 7 #include "ash/ime/input_method_menu_item.h" | 9 #ifndef UI_CHROMEOS_IME_INPUT_METHOD_MENU_MANAGER_H_ |
| 8 #include "base/observer_list.h" | 10 #define UI_CHROMEOS_IME_INPUT_METHOD_MENU_MANAGER_H_ |
| 9 | |
| 10 #ifndef ASH_IME_INPUT_METHOD_MENU_MANAGER_H_ | |
| 11 #define ASH_IME_INPUT_METHOD_MENU_MANAGER_H_ | |
| 12 | 11 |
| 13 template<typename Type> struct DefaultSingletonTraits; | 12 template<typename Type> struct DefaultSingletonTraits; |
| 14 | 13 |
| 15 namespace ash { | 14 namespace ui { |
| 16 namespace ime { | 15 namespace ime { |
| 17 | 16 |
| 18 class ASH_EXPORT InputMethodMenuManager { | 17 class UI_CHROMEOS_EXPORT InputMethodMenuManager { |
| 19 public: | 18 public: |
| 20 class Observer { | 19 class Observer { |
| 21 public: | 20 public: |
| 22 virtual ~Observer() {} | 21 virtual ~Observer() {} |
| 23 | 22 |
| 24 // Called when the list of menu items is changed. | 23 // Called when the list of menu items is changed. |
| 25 virtual void InputMethodMenuItemChanged( | 24 virtual void InputMethodMenuItemChanged( |
| 26 InputMethodMenuManager* manager) = 0; | 25 InputMethodMenuManager* manager) = 0; |
| 27 }; | 26 }; |
| 28 | 27 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 53 // Menu item list of the input method. This is set by extension IMEs. | 52 // Menu item list of the input method. This is set by extension IMEs. |
| 54 InputMethodMenuItemList menu_list_; | 53 InputMethodMenuItemList menu_list_; |
| 55 | 54 |
| 56 // Observers who will be notified when menu changes. | 55 // Observers who will be notified when menu changes. |
| 57 ObserverList<Observer> observers_; | 56 ObserverList<Observer> observers_; |
| 58 | 57 |
| 59 DISALLOW_COPY_AND_ASSIGN(InputMethodMenuManager); | 58 DISALLOW_COPY_AND_ASSIGN(InputMethodMenuManager); |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 } // namespace ime | 61 } // namespace ime |
| 63 } // namespace ash | 62 } // namespace ui |
| 64 | 63 |
| 65 #endif // ASH_IME_INPUT_METHOD_MENU_MANAGER_H_ | 64 #endif // UI_CHROMEOS_IME_INPUT_METHOD_MENU_MANAGER_H_ |
| OLD | NEW |