Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: chrome/browser/ui/views/toolbar/app_menu_button.h

Issue 2033553003: Add MD ink drop ripple to shelf app items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed TODO Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/bubble_icon_view.h ('k') | chrome/browser/ui/views/toolbar/toolbar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698