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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 void SetCompositionText(const ui::CompositionText& composition) override; | 298 void SetCompositionText(const ui::CompositionText& composition) override; |
299 void ConfirmCompositionText() override; | 299 void ConfirmCompositionText() override; |
300 void ClearCompositionText() override; | 300 void ClearCompositionText() override; |
301 void InsertText(const base::string16& text) override; | 301 void InsertText(const base::string16& text) override; |
302 void InsertChar(const ui::KeyEvent& event) override; | 302 void InsertChar(const ui::KeyEvent& event) override; |
303 ui::TextInputType GetTextInputType() const override; | 303 ui::TextInputType GetTextInputType() const override; |
304 ui::TextInputMode GetTextInputMode() const override; | 304 ui::TextInputMode GetTextInputMode() const override; |
305 base::i18n::TextDirection GetTextDirection() const override; | 305 base::i18n::TextDirection GetTextDirection() const override; |
306 int GetTextInputFlags() const override; | 306 int GetTextInputFlags() const override; |
307 bool CanComposeInline() const override; | 307 bool CanComposeInline() const override; |
| 308 float GetScaleFactor() const override; |
308 gfx::Rect GetCaretBounds() const override; | 309 gfx::Rect GetCaretBounds() const override; |
309 bool GetCompositionCharacterBounds(uint32_t index, | 310 bool GetCompositionCharacterBounds(uint32_t index, |
310 gfx::Rect* rect) const override; | 311 gfx::Rect* rect) const override; |
311 bool HasCompositionText() const override; | 312 bool HasCompositionText() const override; |
312 bool GetTextRange(gfx::Range* range) const override; | 313 bool GetTextRange(gfx::Range* range) const override; |
313 bool GetCompositionTextRange(gfx::Range* range) const override; | 314 bool GetCompositionTextRange(gfx::Range* range) const override; |
314 bool GetSelectionRange(gfx::Range* range) const override; | 315 bool GetSelectionRange(gfx::Range* range) const override; |
315 bool SetSelectionRange(const gfx::Range& range) override; | 316 bool SetSelectionRange(const gfx::Range& range) override; |
316 bool DeleteRange(const gfx::Range& range) override; | 317 bool DeleteRange(const gfx::Range& range) override; |
317 bool GetTextFromRange(const gfx::Range& range, | 318 bool GetTextFromRange(const gfx::Range& range, |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 | 530 |
530 // Used to bind callback functions to this object. | 531 // Used to bind callback functions to this object. |
531 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 532 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
532 | 533 |
533 DISALLOW_COPY_AND_ASSIGN(Textfield); | 534 DISALLOW_COPY_AND_ASSIGN(Textfield); |
534 }; | 535 }; |
535 | 536 |
536 } // namespace views | 537 } // namespace views |
537 | 538 |
538 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 539 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |