OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEWS_IME_INPUT_METHOD_WIN_H_ | 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_WIN_H_ |
6 #define UI_VIEWS_IME_INPUT_METHOD_WIN_H_ | 6 #define UI_VIEWS_IME_INPUT_METHOD_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 10 matching lines...) Expand all Loading... |
21 // An InputMethod implementation based on Windows IMM32 API. | 21 // An InputMethod implementation based on Windows IMM32 API. |
22 class InputMethodWin : public InputMethodBase { | 22 class InputMethodWin : public InputMethodBase { |
23 public: | 23 public: |
24 explicit InputMethodWin(internal::InputMethodDelegate* delegate); | 24 explicit InputMethodWin(internal::InputMethodDelegate* delegate); |
25 virtual ~InputMethodWin(); | 25 virtual ~InputMethodWin(); |
26 | 26 |
27 // Overridden from InputMethod: | 27 // Overridden from InputMethod: |
28 virtual void Init(Widget* widget) OVERRIDE; | 28 virtual void Init(Widget* widget) OVERRIDE; |
29 virtual void OnFocus() OVERRIDE; | 29 virtual void OnFocus() OVERRIDE; |
30 virtual void OnBlur() OVERRIDE; | 30 virtual void OnBlur() OVERRIDE; |
31 virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE; | 31 virtual void DispatchKeyEvent(const ui::KeyEvent& key) OVERRIDE; |
32 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; | 32 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; |
33 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; | 33 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; |
34 virtual void CancelComposition(View* view) OVERRIDE; | 34 virtual void CancelComposition(View* view) OVERRIDE; |
35 virtual std::string GetInputLocale() OVERRIDE; | 35 virtual std::string GetInputLocale() OVERRIDE; |
36 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; | 36 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; |
37 virtual bool IsActive() OVERRIDE; | 37 virtual bool IsActive() OVERRIDE; |
38 | 38 |
39 // Handles IME messages. | 39 // Handles IME messages. |
40 LRESULT OnImeMessages(UINT message, WPARAM wparam, LPARAM lparam, | 40 LRESULT OnImeMessages(UINT message, WPARAM wparam, LPARAM lparam, |
41 BOOL* handled); | 41 BOOL* handled); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Windows IMM32 wrapper. | 95 // Windows IMM32 wrapper. |
96 // (See "ui/base/win/ime_input.h" for its details.) | 96 // (See "ui/base/win/ime_input.h" for its details.) |
97 ui::ImeInput ime_input_; | 97 ui::ImeInput ime_input_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); | 99 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace views | 102 } // namespace views |
103 | 103 |
104 #endif // UI_VIEWS_IME_INPUT_METHOD_WIN_H_ | 104 #endif // UI_VIEWS_IME_INPUT_METHOD_WIN_H_ |
OLD | NEW |