OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
12 #include "ui/base/ime/chromeos/input_method_delegate.h" | 12 #include "ui/base/ime/chromeos/input_method_delegate.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 namespace input_method { | 15 namespace input_method { |
16 | 16 |
17 // Accesses the hardware keyboard layout and application locale from the | 17 // Accesses the hardware keyboard layout and application locale from the |
18 // BrowserProcess. | 18 // BrowserProcess. |
19 class InputMethodDelegateImpl : public InputMethodDelegate { | 19 class InputMethodDelegateImpl : public InputMethodDelegate { |
20 public: | 20 public: |
21 InputMethodDelegateImpl(); | 21 InputMethodDelegateImpl(); |
22 ~InputMethodDelegateImpl() override; | 22 ~InputMethodDelegateImpl() override; |
23 | 23 |
24 // InputMethodDelegate implementation. | 24 // InputMethodDelegate implementation. |
25 std::string GetHardwareKeyboardLayouts() const override; | 25 std::string GetHardwareKeyboardLayouts() const override; |
26 base::string16 GetLocalizedString(int resource_id) const override; | 26 base::string16 GetLocalizedString(int resource_id) const override; |
27 base::string16 GetDisplayLanguageName( | 27 base::string16 GetDisplayLanguageName( |
28 const std::string& language_code) const override; | 28 const std::string& language_code) const override; |
29 void SetHardwareKeyboardLayoutForTesting(const std::string& layout) override; | 29 void SetHardwareKeyboardLayoutForTesting(const std::string& layout) override; |
30 | 30 |
31 private: | 31 private: |
32 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegateImpl); | 32 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegateImpl); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace input_method | 35 } // namespace input_method |
36 } // namespace chromeos | 36 } // namespace chromeos |
37 | 37 |
38 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_ | 38 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_ |
OLD | NEW |