| 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_APP_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_BUTTON_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_BUTTON_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/ui/toolbar/app_menu_icon_controller.h" | 12 #include "chrome/browser/ui/toolbar/app_menu_icon_controller.h" |
| 13 #include "chrome/browser/ui/toolbar/app_menu_icon_painter.h" | 13 #include "chrome/browser/ui/toolbar/app_menu_icon_painter.h" |
| 14 #include "ui/views/controls/button/menu_button.h" | 14 #include "ui/views/controls/button/menu_button.h" |
| 15 #include "ui/views/controls/button/menu_button_listener.h" | 15 #include "ui/views/controls/button/menu_button_listener.h" |
| 16 #include "ui/views/view.h" | 16 #include "ui/views/view.h" |
| 17 | 17 |
| 18 class AppMenu; | 18 class AppMenu; |
| 19 class AppMenuModel; | 19 class AppMenuModel; |
| 20 | 20 |
| 21 namespace views { | 21 namespace views { |
| 22 class InkDropDelegate; | |
| 23 class LabelButtonBorder; | 22 class LabelButtonBorder; |
| 24 class MenuListener; | 23 class MenuListener; |
| 25 } | 24 } |
| 26 | 25 |
| 27 class ToolbarView; | 26 class ToolbarView; |
| 28 | 27 |
| 29 class AppMenuButton : public views::MenuButton, | 28 class AppMenuButton : public views::MenuButton, |
| 30 public AppMenuIconPainter::Delegate { | 29 public AppMenuIconPainter::Delegate { |
| 31 public: | 30 public: |
| 32 explicit AppMenuButton(ToolbarView* toolbar_view); | 31 explicit AppMenuButton(ToolbarView* toolbar_view); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // a maximized state to extend to the full window width. | 115 // a maximized state to extend to the full window width. |
| 117 int margin_trailing_; | 116 int margin_trailing_; |
| 118 | 117 |
| 119 // Used to spawn weak pointers for delayed tasks to open the overflow menu. | 118 // Used to spawn weak pointers for delayed tasks to open the overflow menu. |
| 120 base::WeakPtrFactory<AppMenuButton> weak_factory_; | 119 base::WeakPtrFactory<AppMenuButton> weak_factory_; |
| 121 | 120 |
| 122 DISALLOW_COPY_AND_ASSIGN(AppMenuButton); | 121 DISALLOW_COPY_AND_ASSIGN(AppMenuButton); |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_BUTTON_H_ | 124 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_APP_MENU_BUTTON_H_ |
| OLD | NEW |