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

Unified Diff: ui/app_list/cocoa/apps_grid_view_item.mm

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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
Index: ui/app_list/cocoa/apps_grid_view_item.mm
diff --git a/ui/app_list/cocoa/apps_grid_view_item.mm b/ui/app_list/cocoa/apps_grid_view_item.mm
index 70595054aeef5ddb554b8c4c1cb1d2cf92659384..ee4439431efa101fe64cd32be4f6f2e0a1eb5b07 100644
--- a/ui/app_list/cocoa/apps_grid_view_item.mm
+++ b/ui/app_list/cocoa/apps_grid_view_item.mm
@@ -5,7 +5,7 @@
#import "ui/app_list/cocoa/apps_grid_view_item.h"
#include "base/mac/foundation_util.h"
-#include "base/memory/scoped_nsobject.h"
+#include "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h"
#include "skia/ext/skia_utils_mac.h"
#include "ui/app_list/app_list_constants.h"
@@ -13,8 +13,8 @@
#include "ui/app_list/app_list_item_model_observer.h"
#import "ui/base/cocoa/menu_controller.h"
#include "ui/base/resource/resource_bundle.h"
-#include "ui/gfx/image/image_skia_util_mac.h"
#include "ui/gfx/font.h"
+#include "ui/gfx/image/image_skia_util_mac.h"
#include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
namespace {
@@ -43,7 +43,7 @@ class ItemModelObserverBridge : public app_list::AppListItemModelObserver {
private:
AppsGridViewItem* parent_; // Weak. Owns us.
AppListItemModel* model_; // Weak. Owned by AppListModel::Apps.
- scoped_nsobject<MenuController> context_menu_controller_;
+ base::scoped_nsobject<MenuController> context_menu_controller_;
DISALLOW_COPY_AND_ASSIGN(ItemModelObserverBridge);
};
@@ -172,7 +172,7 @@ void ItemModelObserverBridge::ItemPercentDownloadedChanged() {
- (id)initWithSize:(NSSize)tileSize {
if ((self = [super init])) {
- scoped_nsobject<AppsGridItemButton> prototypeButton(
+ base::scoped_nsobject<AppsGridItemButton> prototypeButton(
[[AppsGridItemButton alloc] initWithFrame:NSMakeRect(
0, 0, tileSize.width, tileSize.height - kTileTopPadding)]);
@@ -183,9 +183,9 @@ void ItemModelObserverBridge::ItemPercentDownloadedChanged() {
[prototypeButton setButtonType:NSMomentaryChangeButton];
[prototypeButton setBordered:NO];
- scoped_nsobject<AppsGridItemBackgroundView> prototypeButtonBackground(
- [[AppsGridItemBackgroundView alloc] initWithFrame:NSMakeRect(
- 0, 0, tileSize.width, tileSize.height)]);
+ base::scoped_nsobject<AppsGridItemBackgroundView> prototypeButtonBackground(
+ [[AppsGridItemBackgroundView alloc]
+ initWithFrame:NSMakeRect(0, 0, tileSize.width, tileSize.height)]);
[prototypeButtonBackground addSubview:prototypeButton];
[self setView:prototypeButtonBackground];
}
@@ -197,7 +197,7 @@ void ItemModelObserverBridge::ItemPercentDownloadedChanged() {
}
- (void)setButtonTitle:(NSString*)newTitle {
- scoped_nsobject<NSMutableParagraphStyle> paragraphStyle(
+ base::scoped_nsobject<NSMutableParagraphStyle> paragraphStyle(
[[NSMutableParagraphStyle alloc] init]);
[paragraphStyle setLineBreakMode:NSLineBreakByTruncatingTail];
[paragraphStyle setAlignment:NSCenterTextAlignment];
@@ -209,7 +209,7 @@ void ItemModelObserverBridge::ItemPercentDownloadedChanged() {
gfx::SkColorToCalibratedNSColor(app_list::kGridTitleHoverColor) :
gfx::SkColorToCalibratedNSColor(app_list::kGridTitleColor)
};
- scoped_nsobject<NSAttributedString> attributedTitle(
+ base::scoped_nsobject<NSAttributedString> attributedTitle(
[[NSAttributedString alloc] initWithString:newTitle
attributes:titleAttributes]);
[[self button] setAttributedTitle:attributedTitle];
@@ -300,7 +300,7 @@ void ItemModelObserverBridge::ItemPercentDownloadedChanged() {
return;
}
- scoped_nsobject<NSShadow> shadow([[NSShadow alloc] init]);
+ base::scoped_nsobject<NSShadow> shadow([[NSShadow alloc] init]);
gfx::ScopedNSGraphicsContextSaveGState context;
[shadow setShadowOffset:NSMakeSize(0, -2)];
[shadow setShadowBlurRadius:2.0];

Powered by Google App Engine
This is Rietveld 408576698