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

Unified Diff: ui/app_list/views/app_list_menu_views.h

Issue 2127713005: Purge AppListMenu, and the app list profile switcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160707-Apps-RemoveSettings
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.cc ('k') | ui/app_list/views/app_list_menu_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 131e68f90fb0d3b84c8e16b985becb8f750fc6e4..0000000000000000000000000000000000000000
--- a/ui/app_list/views/app_list_menu_views.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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 <memory>
-
-#include "base/macros.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 {
-
-// Views implementation of the app list menu.
-// TODO(benwells): We should consider moving this into Chrome.
-class AppListMenuViews : public AppListMenu {
- public:
- explicit AppListMenuViews(AppListViewDelegate* delegate);
- ~AppListMenuViews() override;
-
- void RunMenuAt(views::MenuButton* button, const gfx::Point& point);
- void Cancel();
-
- private:
- // The context menu itself and its contents.
- std::unique_ptr<views::MenuModelAdapter> menu_delegate_;
- views::MenuItemView* menu_; // Owned by menu_runner_.
- std::unique_ptr<views::MenuRunner> menu_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(AppListMenuViews);
-};
-
-} // namespace app_list
-
-#endif // UI_APP_LIST_VIEWS_APP_LIST_MENU_VIEWS_H_
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.cc ('k') | ui/app_list/views/app_list_menu_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698