Index: ui/app_list/views/app_list_menu_views.h |
diff --git a/ui/app_list/views/app_list_menu_views.h b/ui/app_list/views/app_list_menu_views.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..194949312092e0eff82f392852406b7b5490154f |
--- /dev/null |
+++ b/ui/app_list/views/app_list_menu_views.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_APP_LIST_VIEWS_APP_LIST_MENU_VIEWS_H_ |
+#define UI_APP_LIST_VIEWS_APP_LIST_MENU_VIEWS_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "ui/app_list/app_list_menu.h" |
+#include "ui/views/controls/menu/menu_model_adapter.h" |
+#include "ui/views/controls/menu/menu_runner.h" |
+ |
+namespace gfx { |
+class Point; |
+} |
+ |
+namespace views { |
+class MenuButton; |
+} |
+ |
+namespace app_list { |
+ |
+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.
|
+ public: |
+ explicit AppListMenuViews(AppListViewDelegate* delegate); |
+ virtual ~AppListMenuViews() {} |
tapted
2013/03/20 07:44:20
non-trivial destructor -> .cc
benwells
2013/03/20 08:43:34
Done.
|
+ |
+ void RunMenuAt(views::MenuButton* button, const gfx::Point& point); |
+ void Cancel(); |
+ |
+ private: |
+ // The context menu itself and its contents. |
+ scoped_ptr<views::MenuModelAdapter> menu_delegate_; |
+ views::MenuItemView* menu_; // Owned by menu_runner_. |
+ scoped_ptr<views::MenuRunner> menu_runner_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AppListMenuViews); |
+}; |
+ |
+} // namespace app_list |
+ |
+#endif // UI_APP_LIST_VIEWS_APP_LIST_MENU_VIEWS_H_ |