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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 int GetTextInputFlags() const override; | 290 int GetTextInputFlags() const override; |
291 bool CanComposeInline() const override; | 291 bool CanComposeInline() const override; |
292 gfx::Rect GetCaretBounds() const override; | 292 gfx::Rect GetCaretBounds() const override; |
293 bool GetCompositionCharacterBounds(uint32 index, | 293 bool GetCompositionCharacterBounds(uint32 index, |
294 gfx::Rect* rect) const override; | 294 gfx::Rect* rect) const override; |
295 bool HasCompositionText() const override; | 295 bool HasCompositionText() const override; |
296 bool GetTextRange(gfx::Range* range) const override; | 296 bool GetTextRange(gfx::Range* range) const override; |
297 bool GetCompositionTextRange(gfx::Range* range) const override; | 297 bool GetCompositionTextRange(gfx::Range* range) const override; |
298 bool GetSelectionRange(gfx::Range* range) const override; | 298 bool GetSelectionRange(gfx::Range* range) const override; |
299 bool SetSelectionRange(const gfx::Range& range) override; | 299 bool SetSelectionRange(const gfx::Range& range) override; |
| 300 uint32 GetSelectionOffset() const override; |
300 bool DeleteRange(const gfx::Range& range) override; | 301 bool DeleteRange(const gfx::Range& range) override; |
301 bool GetTextFromRange(const gfx::Range& range, | 302 bool GetTextFromRange(const gfx::Range& range, |
302 base::string16* text) const override; | 303 base::string16* text) const override; |
303 void OnInputMethodChanged() override; | 304 void OnInputMethodChanged() override; |
304 bool ChangeTextDirectionAndLayoutAlignment( | 305 bool ChangeTextDirectionAndLayoutAlignment( |
305 base::i18n::TextDirection direction) override; | 306 base::i18n::TextDirection direction) override; |
306 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 307 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
307 void EnsureCaretInRect(const gfx::Rect& rect) override; | 308 void EnsureCaretInRect(const gfx::Rect& rect) override; |
308 bool IsEditCommandEnabled(int command_id) override; | 309 bool IsEditCommandEnabled(int command_id) override; |
309 void SetEditCommandForNextKeyEvent(int command_id) override; | 310 void SetEditCommandForNextKeyEvent(int command_id) override; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 | 485 |
485 // Used to bind callback functions to this object. | 486 // Used to bind callback functions to this object. |
486 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 487 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
487 | 488 |
488 DISALLOW_COPY_AND_ASSIGN(Textfield); | 489 DISALLOW_COPY_AND_ASSIGN(Textfield); |
489 }; | 490 }; |
490 | 491 |
491 } // namespace views | 492 } // namespace views |
492 | 493 |
493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 494 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |