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 VIEWS_IME_INPUT_METHOD_BASE_H_ |
6 #define VIEWS_IME_INPUT_METHOD_BASE_H_ | 6 #define 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" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // If a derived class overrides this method, it should call parent's | 35 // If a derived class overrides this method, it should call parent's |
36 // implementation first, to make sure |widget_focused_| flag can be updated | 36 // implementation first, to make sure |widget_focused_| flag can be updated |
37 // correctly. | 37 // correctly. |
38 virtual void OnFocus() OVERRIDE; | 38 virtual void OnFocus() OVERRIDE; |
39 | 39 |
40 // If a derived class overrides this method, it should call parent's | 40 // If a derived class overrides this method, it should call parent's |
41 // implementation first, to make sure |widget_focused_| flag can be updated | 41 // implementation first, to make sure |widget_focused_| flag can be updated |
42 // correctly. | 42 // correctly. |
43 virtual void OnBlur() OVERRIDE; | 43 virtual void OnBlur() OVERRIDE; |
44 | 44 |
| 45 // If a derived class overrides this method, it should call parent's |
| 46 // implementation. |
| 47 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; |
| 48 |
45 virtual TextInputClient* GetTextInputClient() const OVERRIDE; | 49 virtual TextInputClient* GetTextInputClient() const OVERRIDE; |
46 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 50 virtual ui::TextInputType GetTextInputType() const OVERRIDE; |
47 | 51 |
48 // Overridden from FocusChangeListener. Derived classes shouldn't override | 52 // Overridden from FocusChangeListener. Derived classes shouldn't override |
49 // this method. Override FocusedViewWillChange() and FocusedViewDidChange() | 53 // this method. Override FocusedViewWillChange() and FocusedViewDidChange() |
50 // instead. | 54 // instead. |
51 virtual void FocusWillChange(View* focused_before, View* focused) OVERRIDE; | 55 virtual void FocusWillChange(View* focused_before, View* focused) OVERRIDE; |
52 | 56 |
53 protected: | 57 protected: |
54 // Getters and setters of properties. | 58 // Getters and setters of properties. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 101 |
98 // Indicates if the top-level widget is focused or not. | 102 // Indicates if the top-level widget is focused or not. |
99 bool widget_focused_; | 103 bool widget_focused_; |
100 | 104 |
101 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 105 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
102 }; | 106 }; |
103 | 107 |
104 } // namespace views | 108 } // namespace views |
105 | 109 |
106 #endif // VIEWS_IME_INPUT_METHOD_BASE_H_ | 110 #endif // VIEWS_IME_INPUT_METHOD_BASE_H_ |
OLD | NEW |