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

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

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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 "grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "grit/theme_resources.h" 8 #include "grit/theme_resources.h"
9 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMKeyValueAnimation.h" 9 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMKeyValueAnimation.h"
10 #include "ui/base/cocoa/animation_utils.h" 10 #include "ui/base/cocoa/animation_utils.h"
11 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/resources/grit/ui_resources.h" 13 #include "ui/resources/grit/ui_resources.h"
14 14
15 namespace { 15 namespace {
16 const CGFloat kFramesPerSecond = 16; // Determined experimentally to look good. 16 const CGFloat kFramesPerSecond = 16; // Determined experimentally to look good.
17 const CGFloat kCloseAnimationDuration = 0.1; 17 const CGFloat kCloseAnimationDuration = 0.1;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 break; 228 break;
229 case kHoverStateMouseDown: 229 case kHoverStateMouseDown:
230 imageID = IDR_CLOSE_DIALOG_P; 230 imageID = IDR_CLOSE_DIALOG_P;
231 break; 231 break;
232 } 232 }
233 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance(); 233 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
234 return bundle.GetNativeImageNamed(imageID).ToNSImage(); 234 return bundle.GetNativeImageNamed(imageID).ToNSImage();
235 } 235 }
236 236
237 @end 237 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/history_menu_bridge.mm ('k') | chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698