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

Side by Side Diff: ui/app_list/views/app_list_menu_views.h

Issue 12789010: [win] Change app launcher profile indicator to be a menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MENU_VIEWS_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_MENU_VIEWS_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/app_list/app_list_menu.h"
10 #include "ui/views/controls/menu/menu_model_adapter.h"
11 #include "ui/views/controls/menu/menu_runner.h"
12
13 namespace gfx {
14 class Point;
15 }
16
17 namespace views {
18 class MenuButton;
19 }
20
21 namespace app_list {
22
23 class AppListMenuViews : app_list::AppListMenu {
tapted 2013/03/20 07:44:20 class comment?
tapted 2013/03/20 07:44:20 AppListMenuViews -> AppListMenuView
benwells 2013/03/20 08:43:34 Done.
benwells 2013/03/20 08:43:34 It is the Views implementation of the AppListMenu.
24 public:
25 explicit AppListMenuViews(AppListViewDelegate* delegate);
26 virtual ~AppListMenuViews() {}
tapted 2013/03/20 07:44:20 non-trivial destructor -> .cc
benwells 2013/03/20 08:43:34 Done.
27
28 void RunMenuAt(views::MenuButton* button, const gfx::Point& point);
29 void Cancel();
30
31 private:
32 // The context menu itself and its contents.
33 scoped_ptr<views::MenuModelAdapter> menu_delegate_;
34 views::MenuItemView* menu_; // Owned by menu_runner_.
35 scoped_ptr<views::MenuRunner> menu_runner_;
36
37 DISALLOW_COPY_AND_ASSIGN(AppListMenuViews);
38 };
39
40 } // namespace app_list
41
42 #endif // UI_APP_LIST_VIEWS_APP_LIST_MENU_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698