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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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 <memory>
9
8 #include "ash/shelf/shelf_menu_model.h" 10 #include "ash/shelf/shelf_menu_model.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
12 13
13 class ChromeLauncherAppMenuItem; 14 class ChromeLauncherAppMenuItem;
14 class LauncherApplicationMenuItemModelTestAPI; 15 class LauncherApplicationMenuItemModelTestAPI;
15 16
16 // A list of the elements which makes up a simple menu description. 17 // A list of the elements which makes up a simple menu description.
17 typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems; 18 typedef ScopedVector<ChromeLauncherAppMenuItem> ChromeLauncherAppMenuItems;
18 19
19 // A menu model that builds the contents of a menu for a launcher item 20 // A menu model that builds the contents of a menu for a launcher item
20 // containing a list of running applications. 21 // containing a list of running applications.
(...skipping 26 matching lines...) Expand all
47 void RecordMenuItemSelectedMetrics(int command_id, 48 void RecordMenuItemSelectedMetrics(int command_id,
48 int num_menu_items_enabled); 49 int num_menu_items_enabled);
49 50
50 // The list of menu items as returned from the launcher controller. 51 // The list of menu items as returned from the launcher controller.
51 ChromeLauncherAppMenuItems launcher_items_; 52 ChromeLauncherAppMenuItems launcher_items_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(LauncherApplicationMenuItemModel); 54 DISALLOW_COPY_AND_ASSIGN(LauncherApplicationMenuItemModel);
54 }; 55 };
55 56
56 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APPLICATION_MENU_ITEM_MODEL_H _ 57 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APPLICATION_MENU_ITEM_MODEL_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698