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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
517 // scrolling. If |true|, handles are shown after scrolling ends. | 517 // scrolling. If |true|, handles are shown after scrolling ends. |
518 bool touch_handles_hidden_due_to_scroll_; | 518 bool touch_handles_hidden_due_to_scroll_; |
519 | 519 |
520 // True if this textfield should use a focus ring to indicate focus. | 520 // True if this textfield should use a focus ring to indicate focus. |
521 bool use_focus_ring_; | 521 bool use_focus_ring_; |
522 | 522 |
523 // Context menu related members. | 523 // Context menu related members. |
524 std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_; | 524 std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_; |
525 std::unique_ptr<views::MenuRunner> context_menu_runner_; | 525 std::unique_ptr<views::MenuRunner> context_menu_runner_; |
526 | 526 |
527 // View containing the text cursor. | |
528 std::unique_ptr<views::View> cursor_view_; | |
sadrul
2017/02/02 17:15:32
Don't need views.
Don't need unique_ptr (i.e. jus
yiyix
2017/02/06 21:36:18
As we have discussed offline, done.
| |
529 | |
527 // Used to bind callback functions to this object. | 530 // Used to bind callback functions to this object. |
528 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 531 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
529 | 532 |
530 DISALLOW_COPY_AND_ASSIGN(Textfield); | 533 DISALLOW_COPY_AND_ASSIGN(Textfield); |
531 }; | 534 }; |
532 | 535 |
533 } // namespace views | 536 } // namespace views |
534 | 537 |
535 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 538 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |