| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 bool GetSelectionRange(gfx::Range* range) const override; | 311 bool GetSelectionRange(gfx::Range* range) const override; |
| 312 bool SetSelectionRange(const gfx::Range& range) override; | 312 bool SetSelectionRange(const gfx::Range& range) override; |
| 313 bool DeleteRange(const gfx::Range& range) override; | 313 bool DeleteRange(const gfx::Range& range) override; |
| 314 bool GetTextFromRange(const gfx::Range& range, | 314 bool GetTextFromRange(const gfx::Range& range, |
| 315 base::string16* text) const override; | 315 base::string16* text) const override; |
| 316 void OnInputMethodChanged() override; | 316 void OnInputMethodChanged() override; |
| 317 bool ChangeTextDirectionAndLayoutAlignment( | 317 bool ChangeTextDirectionAndLayoutAlignment( |
| 318 base::i18n::TextDirection direction) override; | 318 base::i18n::TextDirection direction) override; |
| 319 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 319 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
| 320 void EnsureCaretNotInRect(const gfx::Rect& rect) override; | 320 void EnsureCaretNotInRect(const gfx::Rect& rect) override; |
| 321 void OnClientFocusLost() override; |
| 321 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override; | 322 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override; |
| 322 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override; | 323 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override; |
| 323 | 324 |
| 324 protected: | 325 protected: |
| 325 // Inserts or appends a character in response to an IME operation. | 326 // Inserts or appends a character in response to an IME operation. |
| 326 virtual void DoInsertChar(base::char16 ch); | 327 virtual void DoInsertChar(base::char16 ch); |
| 327 | 328 |
| 328 // Returns the TextfieldModel's text/cursor/selection rendering model. | 329 // Returns the TextfieldModel's text/cursor/selection rendering model. |
| 329 gfx::RenderText* GetRenderText() const; | 330 gfx::RenderText* GetRenderText() const; |
| 330 | 331 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 | 533 |
| 533 // Used to bind callback functions to this object. | 534 // Used to bind callback functions to this object. |
| 534 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 535 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
| 535 | 536 |
| 536 DISALLOW_COPY_AND_ASSIGN(Textfield); | 537 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 537 }; | 538 }; |
| 538 | 539 |
| 539 } // namespace views | 540 } // namespace views |
| 540 | 541 |
| 541 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 542 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |