OLD | NEW |
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 Loading... |
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 |
OLD | NEW |