| 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 // View overrides: | 339 // View overrides: |
| 340 // Declared final since overriding by subclasses would interfere with the | 340 // Declared final since overriding by subclasses would interfere with the |
| 341 // accounting related to the scheduled text edit command. Subclasses should | 341 // accounting related to the scheduled text edit command. Subclasses should |
| 342 // use TextfieldController::HandleKeyEvent, to intercept the key event. | 342 // use TextfieldController::HandleKeyEvent, to intercept the key event. |
| 343 bool OnKeyPressed(const ui::KeyEvent& event) final; | 343 bool OnKeyPressed(const ui::KeyEvent& event) final; |
| 344 bool OnKeyReleased(const ui::KeyEvent& event) final; | 344 bool OnKeyReleased(const ui::KeyEvent& event) final; |
| 345 | 345 |
| 346 // SelectionController::Delegate overrides: | 346 // SelectionController::Delegate overrides: |
| 347 gfx::RenderText* GetRenderTextForSelection() override; | 347 gfx::RenderText* GetRenderTextForSelection() override; |
| 348 bool IsReadOnly() const override; | 348 bool IsReadOnly() const override; |
| 349 bool SupportsDrag() const override; |
| 349 void SetTextBeingDragged(bool value) override; | 350 void SetTextBeingDragged(bool value) override; |
| 350 int GetViewHeight() const override; | 351 int GetViewHeight() const override; |
| 351 int GetViewWidth() const override; | 352 int GetViewWidth() const override; |
| 352 int GetDragSelectionDelay() const override; | 353 int GetDragSelectionDelay() const override; |
| 353 void OnBeforeMouseAction() override; | 354 void OnBeforeMouseAction() override; |
| 354 void OnAfterMouseAction(bool text_changed, bool selection_changed) override; | 355 void OnAfterMouseAction(bool text_changed, bool selection_changed) override; |
| 355 void OnBeforeSelectionUpdated() override; | 356 void OnBeforeSelectionUpdated() override; |
| 356 void OnAfterSelectionUpdated() override; | 357 void OnAfterSelectionUpdated() override; |
| 357 void PasteSelectionClipboard(const ui::MouseEvent& event) override; | 358 void PasteSelectionClipboard(const ui::MouseEvent& event) override; |
| 358 void UpdateSelectionClipboard() override; | 359 void UpdateSelectionClipboard() override; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 526 |
| 526 // Used to bind callback functions to this object. | 527 // Used to bind callback functions to this object. |
| 527 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 528 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
| 528 | 529 |
| 529 DISALLOW_COPY_AND_ASSIGN(Textfield); | 530 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 530 }; | 531 }; |
| 531 | 532 |
| 532 } // namespace views | 533 } // namespace views |
| 533 | 534 |
| 534 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 535 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |