| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 bool GetSelectionRange(gfx::Range* range) const override; | 299 bool GetSelectionRange(gfx::Range* range) const override; |
| 300 bool SetSelectionRange(const gfx::Range& range) override; | 300 bool SetSelectionRange(const gfx::Range& range) override; |
| 301 bool DeleteRange(const gfx::Range& range) override; | 301 bool DeleteRange(const gfx::Range& range) override; |
| 302 bool GetTextFromRange(const gfx::Range& range, | 302 bool GetTextFromRange(const gfx::Range& range, |
| 303 base::string16* text) const override; | 303 base::string16* text) const override; |
| 304 void OnInputMethodChanged() override; | 304 void OnInputMethodChanged() override; |
| 305 bool ChangeTextDirectionAndLayoutAlignment( | 305 bool ChangeTextDirectionAndLayoutAlignment( |
| 306 base::i18n::TextDirection direction) override; | 306 base::i18n::TextDirection direction) override; |
| 307 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 307 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
| 308 void EnsureCaretInRect(const gfx::Rect& rect) override; | 308 void EnsureCaretInRect(const gfx::Rect& rect) override; |
| 309 void OnCandidateWindowShown() override; | |
| 310 void OnCandidateWindowUpdated() override; | |
| 311 void OnCandidateWindowHidden() override; | |
| 312 bool IsEditCommandEnabled(int command_id) override; | 309 bool IsEditCommandEnabled(int command_id) override; |
| 313 void SetEditCommandForNextKeyEvent(int command_id) override; | 310 void SetEditCommandForNextKeyEvent(int command_id) override; |
| 314 | 311 |
| 315 protected: | 312 protected: |
| 316 // Inserts or appends a character in response to an IME operation. | 313 // Inserts or appends a character in response to an IME operation. |
| 317 virtual void DoInsertChar(base::char16 ch); | 314 virtual void DoInsertChar(base::char16 ch); |
| 318 | 315 |
| 319 // Returns the TextfieldModel's text/cursor/selection rendering model. | 316 // Returns the TextfieldModel's text/cursor/selection rendering model. |
| 320 gfx::RenderText* GetRenderText() const; | 317 gfx::RenderText* GetRenderText() const; |
| 321 | 318 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 | 485 |
| 489 // Used to bind callback functions to this object. | 486 // Used to bind callback functions to this object. |
| 490 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 487 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
| 491 | 488 |
| 492 DISALLOW_COPY_AND_ASSIGN(Textfield); | 489 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 493 }; | 490 }; |
| 494 | 491 |
| 495 } // namespace views | 492 } // namespace views |
| 496 | 493 |
| 497 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 494 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |