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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 int drag_start_display_offset_; | 501 int drag_start_display_offset_; |
502 | 502 |
503 // Tracks if touch editing handles are hidden because user has started | 503 // Tracks if touch editing handles are hidden because user has started |
504 // scrolling. If |true|, handles are shown after scrolling ends. | 504 // scrolling. If |true|, handles are shown after scrolling ends. |
505 bool touch_handles_hidden_due_to_scroll_; | 505 bool touch_handles_hidden_due_to_scroll_; |
506 | 506 |
507 // Context menu related members. | 507 // Context menu related members. |
508 std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_; | 508 std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_; |
509 std::unique_ptr<views::MenuRunner> context_menu_runner_; | 509 std::unique_ptr<views::MenuRunner> context_menu_runner_; |
510 | 510 |
| 511 // A child that indicates focus. |
| 512 View* focus_ring_; |
| 513 |
511 // Used to bind callback functions to this object. | 514 // Used to bind callback functions to this object. |
512 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 515 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
513 | 516 |
514 DISALLOW_COPY_AND_ASSIGN(Textfield); | 517 DISALLOW_COPY_AND_ASSIGN(Textfield); |
515 }; | 518 }; |
516 | 519 |
517 } // namespace views | 520 } // namespace views |
518 | 521 |
519 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 522 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |