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/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 153 virtual ui::TextInputType GetTextInputType() const OVERRIDE; |
154 virtual gfx::Rect GetCaretBounds() OVERRIDE; | 154 virtual gfx::Rect GetCaretBounds() OVERRIDE; |
155 virtual bool HasCompositionText() OVERRIDE; | 155 virtual bool HasCompositionText() OVERRIDE; |
156 virtual bool GetTextRange(ui::Range* range) OVERRIDE; | 156 virtual bool GetTextRange(ui::Range* range) OVERRIDE; |
157 virtual bool GetCompositionTextRange(ui::Range* range) OVERRIDE; | 157 virtual bool GetCompositionTextRange(ui::Range* range) OVERRIDE; |
158 virtual bool GetSelectionRange(ui::Range* range) OVERRIDE; | 158 virtual bool GetSelectionRange(ui::Range* range) OVERRIDE; |
159 virtual bool SetSelectionRange(const ui::Range& range) OVERRIDE; | 159 virtual bool SetSelectionRange(const ui::Range& range) OVERRIDE; |
160 virtual bool DeleteRange(const ui::Range& range) OVERRIDE; | 160 virtual bool DeleteRange(const ui::Range& range) OVERRIDE; |
161 virtual bool GetTextFromRange( | 161 virtual bool GetTextFromRange( |
162 const ui::Range& range, | 162 const ui::Range& range, |
163 const base::Callback<void(const string16&)>& callback) OVERRIDE; | 163 string16* text, |
| 164 ui::Range* actual_range) OVERRIDE; |
164 virtual void OnInputMethodChanged() OVERRIDE; | 165 virtual void OnInputMethodChanged() OVERRIDE; |
165 virtual bool ChangeTextDirectionAndLayoutAlignment( | 166 virtual bool ChangeTextDirectionAndLayoutAlignment( |
166 base::i18n::TextDirection direction) OVERRIDE; | 167 base::i18n::TextDirection direction) OVERRIDE; |
167 virtual View* GetOwnerViewOfTextInputClient() OVERRIDE; | 168 virtual View* GetOwnerViewOfTextInputClient() OVERRIDE; |
168 | 169 |
169 // Overridden from TextfieldViewsModel::Delegate: | 170 // Overridden from TextfieldViewsModel::Delegate: |
170 virtual void OnCompositionTextConfirmedOrCleared() OVERRIDE; | 171 virtual void OnCompositionTextConfirmedOrCleared() OVERRIDE; |
171 | 172 |
172 // Returns the TextfieldViewsModel's text/cursor/selection rendering model. | 173 // Returns the TextfieldViewsModel's text/cursor/selection rendering model. |
173 gfx::RenderText* GetRenderText() const; | 174 gfx::RenderText* GetRenderText() const; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 scoped_ptr<views::MenuRunner> context_menu_runner_; | 255 scoped_ptr<views::MenuRunner> context_menu_runner_; |
255 | 256 |
256 scoped_ptr<TouchSelectionController> touch_selection_controller_; | 257 scoped_ptr<TouchSelectionController> touch_selection_controller_; |
257 | 258 |
258 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 259 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
259 }; | 260 }; |
260 | 261 |
261 } // namespace views | 262 } // namespace views |
262 | 263 |
263 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 264 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
OLD | NEW |