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/ime/input_method_menu_manager.h" | 5 #include "ui/chromeos/ime/input_method_menu_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 | 9 |
10 namespace ash { | 10 namespace ui { |
11 namespace ime { | 11 namespace ime { |
12 | 12 |
13 InputMethodMenuManager::InputMethodMenuManager() | 13 InputMethodMenuManager::InputMethodMenuManager() |
14 : menu_list_(), observers_() {} | 14 : menu_list_(), observers_() {} |
15 | 15 |
16 InputMethodMenuManager::~InputMethodMenuManager() {} | 16 InputMethodMenuManager::~InputMethodMenuManager() {} |
17 | 17 |
18 void InputMethodMenuManager::AddObserver( | 18 void InputMethodMenuManager::AddObserver( |
19 InputMethodMenuManager::Observer* observer) { | 19 InputMethodMenuManager::Observer* observer) { |
20 observers_.AddObserver(observer); | 20 observers_.AddObserver(observer); |
(...skipping 26 matching lines...) Expand all Loading... |
47 } | 47 } |
48 return false; | 48 return false; |
49 } | 49 } |
50 | 50 |
51 // static | 51 // static |
52 InputMethodMenuManager* InputMethodMenuManager::GetInstance() { | 52 InputMethodMenuManager* InputMethodMenuManager::GetInstance() { |
53 return Singleton<InputMethodMenuManager>::get(); | 53 return Singleton<InputMethodMenuManager>::get(); |
54 } | 54 } |
55 | 55 |
56 } // namespace ime | 56 } // namespace ime |
57 } // namespace ash | 57 } // namespace ui |
OLD | NEW |