Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 // Views implementation of the app list menu. | |
| 24 class AppListMenuViews : app_list::AppListMenu { | |
|
tapted
2013/03/20 10:39:57
public inheritance
benwells
2013/03/20 23:08:30
Done.
| |
| 25 public: | |
| 26 explicit AppListMenuViews(AppListViewDelegate* delegate); | |
| 27 virtual ~AppListMenuViews(); | |
| 28 | |
| 29 void RunMenuAt(views::MenuButton* button, const gfx::Point& point); | |
| 30 void Cancel(); | |
| 31 | |
| 32 private: | |
| 33 // The context menu itself and its contents. | |
| 34 scoped_ptr<views::MenuModelAdapter> menu_delegate_; | |
| 35 views::MenuItemView* menu_; // Owned by menu_runner_. | |
| 36 scoped_ptr<views::MenuRunner> menu_runner_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(AppListMenuViews); | |
| 39 }; | |
| 40 | |
| 41 } // namespace app_list | |
| 42 | |
| 43 #endif // UI_APP_LIST_VIEWS_APP_LIST_MENU_VIEWS_H_ | |
| OLD | NEW |