| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "ui/base/win/ime_input.h" | 15 #include "ui/base/win/ime_input.h" |
| 16 #include "ui/views/ime/input_method_base.h" | 16 #include "ui/views/ime/input_method_base.h" |
| 17 #include "ui/views/widget/widget.h" |
| 17 #include "views/view.h" | 18 #include "views/view.h" |
| 18 #include "views/widget/widget.h" | |
| 19 | 19 |
| 20 namespace views { | 20 namespace views { |
| 21 | 21 |
| 22 // An InputMethod implementation based on Windows IMM32 API. | 22 // An InputMethod implementation based on Windows IMM32 API. |
| 23 class InputMethodWin : public InputMethodBase { | 23 class InputMethodWin : public InputMethodBase { |
| 24 public: | 24 public: |
| 25 explicit InputMethodWin(internal::InputMethodDelegate* delegate); | 25 explicit InputMethodWin(internal::InputMethodDelegate* delegate); |
| 26 virtual ~InputMethodWin(); | 26 virtual ~InputMethodWin(); |
| 27 | 27 |
| 28 // Overridden from InputMethod: | 28 // Overridden from InputMethod: |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Windows IMM32 wrapper. | 96 // Windows IMM32 wrapper. |
| 97 // (See "ui/base/win/ime_input.h" for its details.) | 97 // (See "ui/base/win/ime_input.h" for its details.) |
| 98 ui::ImeInput ime_input_; | 98 ui::ImeInput ime_input_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); | 100 DISALLOW_COPY_AND_ASSIGN(InputMethodWin); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace views | 103 } // namespace views |
| 104 | 104 |
| 105 #endif // UI_VIEWS_IME_INPUT_METHOD_WIN_H_ | 105 #endif // UI_VIEWS_IME_INPUT_METHOD_WIN_H_ |
| OLD | NEW |