OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_BUTTON_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_BUTTON_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "ui/gfx/geometry/point.h" | 10 #include "ui/gfx/geometry/point.h" |
10 #include "ui/views/animation/ink_drop_host.h" | 11 #include "ui/views/animation/ink_drop_host.h" |
11 #include "ui/views/context_menu_controller.h" | 12 #include "ui/views/context_menu_controller.h" |
12 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
13 #include "ui/views/controls/button/label_button.h" | 14 #include "ui/views/controls/button/label_button.h" |
14 | 15 |
15 class Profile; | 16 class Profile; |
16 | 17 |
17 namespace ui { | 18 namespace ui { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // Controls the visual feedback for the button state. | 101 // Controls the visual feedback for the button state. |
101 scoped_ptr<views::InkDropDelegate> ink_drop_delegate_; | 102 scoped_ptr<views::InkDropDelegate> ink_drop_delegate_; |
102 | 103 |
103 // A factory for tasks that show the dropdown context menu for the button. | 104 // A factory for tasks that show the dropdown context menu for the button. |
104 base::WeakPtrFactory<ToolbarButton> show_menu_factory_; | 105 base::WeakPtrFactory<ToolbarButton> show_menu_factory_; |
105 | 106 |
106 DISALLOW_COPY_AND_ASSIGN(ToolbarButton); | 107 DISALLOW_COPY_AND_ASSIGN(ToolbarButton); |
107 }; | 108 }; |
108 | 109 |
109 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_BUTTON_H_ | 110 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_BUTTON_H_ |
OLD | NEW |