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

Side by Side Diff: chrome/browser/ui/ash/launcher/launcher_application_menu_item_model.h

Issue 23068021: Remove PerBrowser launcher, reland step 1 of 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ASH_LAUNCHER_LAUNCHER_APPLICATION_MENU_ITEM_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APPLICATION_MENU_ITEM_MODEL_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APPLICATION_MENU_ITEM_MODEL_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APPLICATION_MENU_ITEM_MODEL_H_
7 7
8 #include "ash/launcher/launcher_delegate.h" 8 #include "ash/launcher/launcher_delegate.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h" 10 #include "base/memory/scoped_vector.h"
11
12 class ChromeLauncherAppMenuItem;
13
14 // A list of the elements which makes up a simple menu description.
15 typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems;
11 16
12 // A menu model that builds the contents of a menu for a launcher item 17 // A menu model that builds the contents of a menu for a launcher item
13 // containing a list of running applications. 18 // containing a list of running applications.
14 class LauncherApplicationMenuItemModel : public ash::LauncherMenuModel, 19 class LauncherApplicationMenuItemModel : public ash::LauncherMenuModel,
15 public ui::SimpleMenuModel::Delegate { 20 public ui::SimpleMenuModel::Delegate {
16 public: 21 public:
17 explicit LauncherApplicationMenuItemModel( 22 explicit LauncherApplicationMenuItemModel(
18 ChromeLauncherAppMenuItems item_list); 23 ChromeLauncherAppMenuItems item_list);
19 virtual ~LauncherApplicationMenuItemModel(); 24 virtual ~LauncherApplicationMenuItemModel();
20 25
(...skipping 11 matching lines...) Expand all
32 private: 37 private:
33 void Build(); 38 void Build();
34 39
35 // The list of menu items as returned from the launcher controller. 40 // The list of menu items as returned from the launcher controller.
36 ChromeLauncherAppMenuItems launcher_items_; 41 ChromeLauncherAppMenuItems launcher_items_;
37 42
38 DISALLOW_COPY_AND_ASSIGN(LauncherApplicationMenuItemModel); 43 DISALLOW_COPY_AND_ASSIGN(LauncherApplicationMenuItemModel);
39 }; 44 };
40 45
41 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APPLICATION_MENU_ITEM_MODEL_H _ 46 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APPLICATION_MENU_ITEM_MODEL_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698