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

Side by Side Diff: chrome/browser/ui/cocoa/hover_close_button.mm

Issue 17627005: mac: Remove unused includes of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: builds 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/mac/scoped_nsobject.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "grit/generated_resources.h" 7 #include "grit/generated_resources.h"
10 #include "grit/theme_resources.h" 8 #include "grit/theme_resources.h"
11 #include "grit/ui_resources.h" 9 #include "grit/ui_resources.h"
12 #import "third_party/GTM/AppKit/GTMKeyValueAnimation.h" 10 #import "third_party/GTM/AppKit/GTMKeyValueAnimation.h"
13 #include "ui/base/cocoa/animation_utils.h" 11 #include "ui/base/cocoa/animation_utils.h"
14 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/base/resource/resource_bundle.h" 13 #include "ui/base/resource/resource_bundle.h"
16 14
17 namespace { 15 namespace {
18 const CGFloat kFramesPerSecond = 16; // Determined experimentally to look good. 16 const CGFloat kFramesPerSecond = 16; // Determined experimentally to look good.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 break; 228 break;
231 case kHoverStateMouseDown: 229 case kHoverStateMouseDown:
232 imageID = IDR_CLOSE_DIALOG_P; 230 imageID = IDR_CLOSE_DIALOG_P;
233 break; 231 break;
234 } 232 }
235 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance(); 233 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
236 return bundle.GetNativeImageNamed(imageID).ToNSImage(); 234 return bundle.GetNativeImageNamed(imageID).ToNSImage();
237 } 235 }
238 236
239 @end 237 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/fullscreen_window_unittest.mm ('k') | chrome/browser/ui/cocoa/hung_renderer_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698