| 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_H_ | 5 #ifndef CHROMEOS_IME_INPUT_METHOD_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_ | 6 #define CHROMEOS_IME_INPUT_METHOD_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "chromeos/chromeos_export.h" |
| 11 | 12 |
| 12 namespace chromeos { | 13 namespace chromeos { |
| 13 namespace input_method { | 14 namespace input_method { |
| 14 | 15 |
| 15 // Provides access to read/persist Input Method-related properties. | 16 // Provides access to read/persist Input Method-related properties. |
| 16 class InputMethodDelegate { | 17 class CHROMEOS_EXPORT InputMethodDelegate { |
| 17 public: | 18 public: |
| 18 InputMethodDelegate() {} | 19 InputMethodDelegate() {} |
| 19 virtual ~InputMethodDelegate() {} | 20 virtual ~InputMethodDelegate() {} |
| 20 | 21 |
| 21 // Retrieves the hardware keyboard layout ID. May return an empty string if | 22 // Retrieves the hardware keyboard layout ID. May return an empty string if |
| 22 // the ID is unknown. | 23 // the ID is unknown. |
| 23 virtual std::string GetHardwareKeyboardLayout() const = 0; | 24 virtual std::string GetHardwareKeyboardLayout() const = 0; |
| 24 // Retrieves the currently active UI locale. | 25 // Retrieves the currently active UI locale. |
| 25 virtual std::string GetActiveLocale() const = 0; | 26 virtual std::string GetActiveLocale() const = 0; |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate); | 29 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate); |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 } // namespace input_method | 32 } // namespace input_method |
| 32 } // namespace chromeos | 33 } // namespace chromeos |
| 33 | 34 |
| 34 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_ | 35 #endif // CHROMEOS_IME_INPUT_METHOD_DELEGATE_H_ |
| OLD | NEW |