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_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 // class name of internal | 133 // class name of internal |
134 static const char kViewClassName[]; | 134 static const char kViewClassName[]; |
135 | 135 |
136 protected: | 136 protected: |
137 // View override. | 137 // View override. |
138 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; | 138 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
139 | 139 |
140 private: | 140 private: |
141 friend class NativeTextfieldViewsTest; | 141 friend class NativeTextfieldViewsTest; |
| 142 friend class TouchSelectionControllerImplTest; |
142 | 143 |
143 // Overridden from TextInputClient: | 144 // Overridden from TextInputClient: |
144 virtual void SetCompositionText( | 145 virtual void SetCompositionText( |
145 const ui::CompositionText& composition) OVERRIDE; | 146 const ui::CompositionText& composition) OVERRIDE; |
146 virtual void ConfirmCompositionText() OVERRIDE; | 147 virtual void ConfirmCompositionText() OVERRIDE; |
147 virtual void ClearCompositionText() OVERRIDE; | 148 virtual void ClearCompositionText() OVERRIDE; |
148 virtual void InsertText(const string16& text) OVERRIDE; | 149 virtual void InsertText(const string16& text) OVERRIDE; |
149 virtual void InsertChar(char16 ch, int flags) OVERRIDE; | 150 virtual void InsertChar(char16 ch, int flags) OVERRIDE; |
150 virtual ui::TextInputType GetTextInputType() OVERRIDE; | 151 virtual ui::TextInputType GetTextInputType() OVERRIDE; |
151 virtual gfx::Rect GetCaretBounds() OVERRIDE; | 152 virtual gfx::Rect GetCaretBounds() OVERRIDE; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 scoped_ptr<views::MenuItemView> context_menu_menu_; | 252 scoped_ptr<views::MenuItemView> context_menu_menu_; |
252 | 253 |
253 scoped_ptr<TouchSelectionController> touch_selection_controller_; | 254 scoped_ptr<TouchSelectionController> touch_selection_controller_; |
254 | 255 |
255 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 256 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
256 }; | 257 }; |
257 | 258 |
258 } // namespace views | 259 } // namespace views |
259 | 260 |
260 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 261 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
OLD | NEW |