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 VIEWS_IME_INPUT_METHOD_BASE_H_ | 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_BASE_H_ |
6 #define VIEWS_IME_INPUT_METHOD_BASE_H_ | 6 #define UI_VIEWS_IME_INPUT_METHOD_BASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "ui/views/ime/input_method.h" |
| 12 #include "ui/views/ime/input_method_delegate.h" |
11 #include "views/focus/focus_manager.h" | 13 #include "views/focus/focus_manager.h" |
12 #include "views/ime/input_method.h" | |
13 #include "views/ime/input_method_delegate.h" | |
14 | 14 |
15 namespace gfx { | 15 namespace gfx { |
16 class Rect; | 16 class Rect; |
17 } // namespace gfx | 17 } |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
20 class TextInputClient; | 20 class TextInputClient; |
21 } // namespace ui | 21 } |
22 | 22 |
23 namespace views { | 23 namespace views { |
24 | 24 |
25 class View; | 25 class View; |
26 | 26 |
27 // A helper class providing functionalities shared among InputMethod | 27 // A helper class providing functionalities shared among InputMethod |
28 // implementations. | 28 // implementations. |
29 class VIEWS_EXPORT InputMethodBase : public InputMethod, | 29 class VIEWS_EXPORT InputMethodBase : public InputMethod, |
30 public FocusChangeListener { | 30 public FocusChangeListener { |
31 public: | 31 public: |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 Widget* widget_; | 94 Widget* widget_; |
95 | 95 |
96 // Indicates if the top-level widget is focused or not. | 96 // Indicates if the top-level widget is focused or not. |
97 bool widget_focused_; | 97 bool widget_focused_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 99 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace views | 102 } // namespace views |
103 | 103 |
104 #endif // VIEWS_IME_INPUT_METHOD_BASE_H_ | 104 #endif // UI_VIEWS_IME_INPUT_METHOD_BASE_H_ |
OLD | NEW |