OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 ui::Accelerator* accelerator) OVERRIDE; | 248 ui::Accelerator* accelerator) OVERRIDE; |
249 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; | 249 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; |
250 | 250 |
251 // ui::TextInputClient overrides: | 251 // ui::TextInputClient overrides: |
252 virtual void SetCompositionText( | 252 virtual void SetCompositionText( |
253 const ui::CompositionText& composition) OVERRIDE; | 253 const ui::CompositionText& composition) OVERRIDE; |
254 virtual void ConfirmCompositionText() OVERRIDE; | 254 virtual void ConfirmCompositionText() OVERRIDE; |
255 virtual void ClearCompositionText() OVERRIDE; | 255 virtual void ClearCompositionText() OVERRIDE; |
256 virtual void InsertText(const base::string16& text) OVERRIDE; | 256 virtual void InsertText(const base::string16& text) OVERRIDE; |
257 virtual void InsertChar(base::char16 ch, int flags) OVERRIDE; | 257 virtual void InsertChar(base::char16 ch, int flags) OVERRIDE; |
258 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; | |
259 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 258 virtual ui::TextInputType GetTextInputType() const OVERRIDE; |
260 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; | 259 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; |
261 virtual bool CanComposeInline() const OVERRIDE; | 260 virtual bool CanComposeInline() const OVERRIDE; |
262 virtual gfx::Rect GetCaretBounds() const OVERRIDE; | 261 virtual gfx::Rect GetCaretBounds() const OVERRIDE; |
263 virtual bool GetCompositionCharacterBounds(uint32 index, | 262 virtual bool GetCompositionCharacterBounds(uint32 index, |
264 gfx::Rect* rect) const OVERRIDE; | 263 gfx::Rect* rect) const OVERRIDE; |
265 virtual bool HasCompositionText() const OVERRIDE; | 264 virtual bool HasCompositionText() const OVERRIDE; |
266 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE; | 265 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE; |
267 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE; | 266 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE; |
268 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE; | 267 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 | 427 |
429 // Used to bind callback functions to this object. | 428 // Used to bind callback functions to this object. |
430 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 429 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
431 | 430 |
432 DISALLOW_COPY_AND_ASSIGN(Textfield); | 431 DISALLOW_COPY_AND_ASSIGN(Textfield); |
433 }; | 432 }; |
434 | 433 |
435 } // namespace views | 434 } // namespace views |
436 | 435 |
437 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 436 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |