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

Side by Side Diff: chrome/browser/ui/app_list/arc/arc_app_item.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_APP_LIST_ARC_ARC_APP_ITEM_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_
6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void OnIconUpdated(ArcAppIcon* icon) override; 51 void OnIconUpdated(ArcAppIcon* icon) override;
52 52
53 private: 53 private:
54 // Updates the app item's icon, if necessary making it gray. 54 // Updates the app item's icon, if necessary making it gray.
55 void UpdateIcon(); 55 void UpdateIcon();
56 56
57 // Set the position from the ordering. 57 // Set the position from the ordering.
58 void UpdatePositionFromOrdering(); 58 void UpdatePositionFromOrdering();
59 59
60 bool ready_; 60 bool ready_;
61 scoped_ptr<ArcAppIcon> arc_app_icon_; 61 std::unique_ptr<ArcAppIcon> arc_app_icon_;
62 scoped_ptr<ArcAppContextMenu> context_menu_; 62 std::unique_ptr<ArcAppContextMenu> context_menu_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(ArcAppItem); 64 DISALLOW_COPY_AND_ASSIGN(ArcAppItem);
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_ 67 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_ITEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_icon_loader.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_list_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698