| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_BASE_IME_INPUT_METHOD_IMM32_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_IMM32_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_IMM32_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_IMM32_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "ui/base/ime/input_method_win.h" | 14 #include "ui/base/ime/input_method_win.h" |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 | 17 |
| 18 // An InputMethod implementation based on Windows IMM32 API. | 18 // An InputMethod implementation based on Windows IMM32 API. |
| 19 class UI_EXPORT InputMethodIMM32 : public InputMethodWin { | 19 class UI_BASE_EXPORT InputMethodIMM32 : public InputMethodWin { |
| 20 public: | 20 public: |
| 21 InputMethodIMM32(internal::InputMethodDelegate* delegate, | 21 InputMethodIMM32(internal::InputMethodDelegate* delegate, |
| 22 HWND toplevel_window_handle); | 22 HWND toplevel_window_handle); |
| 23 | 23 |
| 24 // Overridden from InputMethod: | 24 // Overridden from InputMethod: |
| 25 virtual void OnFocus() OVERRIDE; | 25 virtual void OnFocus() OVERRIDE; |
| 26 virtual void OnBlur() OVERRIDE; | 26 virtual void OnBlur() OVERRIDE; |
| 27 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 27 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
| 28 NativeEventResult* result) OVERRIDE; | 28 NativeEventResult* result) OVERRIDE; |
| 29 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 29 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Window handle where composition is on-going. NULL when there is no | 78 // Window handle where composition is on-going. NULL when there is no |
| 79 // composition. | 79 // composition. |
| 80 HWND composing_window_handle_; | 80 HWND composing_window_handle_; |
| 81 | 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(InputMethodIMM32); | 82 DISALLOW_COPY_AND_ASSIGN(InputMethodIMM32); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace ui | 85 } // namespace ui |
| 86 | 86 |
| 87 #endif // UI_BASE_IME_INPUT_METHOD_IMM32_H_ | 87 #endif // UI_BASE_IME_INPUT_METHOD_IMM32_H_ |
| OLD | NEW |