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 19 matching lines...) Expand all Loading... |
30 #include "ui/views/controls/textfield/textfield_model.h" | 30 #include "ui/views/controls/textfield/textfield_model.h" |
31 #include "ui/views/drag_controller.h" | 31 #include "ui/views/drag_controller.h" |
32 #include "ui/views/selection_controller.h" | 32 #include "ui/views/selection_controller.h" |
33 #include "ui/views/selection_controller_delegate.h" | 33 #include "ui/views/selection_controller_delegate.h" |
34 #include "ui/views/view.h" | 34 #include "ui/views/view.h" |
35 #include "ui/views/word_lookup_client.h" | 35 #include "ui/views/word_lookup_client.h" |
36 | 36 |
37 namespace views { | 37 namespace views { |
38 | 38 |
39 class MenuRunner; | 39 class MenuRunner; |
40 class Painter; | |
41 class TextfieldController; | 40 class TextfieldController; |
42 | 41 |
43 // A views/skia textfield implementation. No platform-specific code is used. | 42 // A views/skia textfield implementation. No platform-specific code is used. |
44 class VIEWS_EXPORT Textfield : public View, | 43 class VIEWS_EXPORT Textfield : public View, |
45 public TextfieldModel::Delegate, | 44 public TextfieldModel::Delegate, |
46 public ContextMenuController, | 45 public ContextMenuController, |
47 public DragController, | 46 public DragController, |
48 public WordLookupClient, | 47 public WordLookupClient, |
49 public SelectionControllerDelegate, | 48 public SelectionControllerDelegate, |
50 public ui::TouchEditable, | 49 public ui::TouchEditable, |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 529 |
531 // Used to bind callback functions to this object. | 530 // Used to bind callback functions to this object. |
532 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 531 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
533 | 532 |
534 DISALLOW_COPY_AND_ASSIGN(Textfield); | 533 DISALLOW_COPY_AND_ASSIGN(Textfield); |
535 }; | 534 }; |
536 | 535 |
537 } // namespace views | 536 } // namespace views |
538 | 537 |
539 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 538 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |