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

Side by Side Diff: chrome/browser/ui/cocoa/hover_close_button.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 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 #import "chrome/browser/ui/cocoa/hover_close_button.h" 5 #import "chrome/browser/ui/cocoa/hover_close_button.h"
6 6
7 #include "base/memory/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "grit/theme_resources.h" 10 #include "grit/theme_resources.h"
11 #include "grit/ui_resources.h" 11 #include "grit/ui_resources.h"
12 #import "third_party/GTM/AppKit/GTMKeyValueAnimation.h" 12 #import "third_party/GTM/AppKit/GTMKeyValueAnimation.h"
13 #include "ui/base/cocoa/animation_utils.h" 13 #include "ui/base/cocoa/animation_utils.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
16 16
17 namespace { 17 namespace {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 break; 230 break;
231 case kHoverStateMouseDown: 231 case kHoverStateMouseDown:
232 imageID = IDR_CLOSE_DIALOG_P; 232 imageID = IDR_CLOSE_DIALOG_P;
233 break; 233 break;
234 } 234 }
235 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance(); 235 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
236 return bundle.GetNativeImageNamed(imageID).ToNSImage(); 236 return bundle.GetNativeImageNamed(imageID).ToNSImage();
237 } 237 }
238 238
239 @end 239 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698