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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm

Issue 7200045: Move app/mac/ files to ui/gfx/mac/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/bookmarks/bookmark_button_cell.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h"
6 6
7 #include "app/mac/nsimage_cache.h"
8 #include "base/logging.h" 7 #include "base/logging.h"
9 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
10 #import "chrome/browser/bookmarks/bookmark_model.h" 9 #import "chrome/browser/bookmarks/bookmark_model.h"
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu.h" 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu.h"
12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
13 #import "chrome/browser/ui/cocoa/image_utils.h" 12 #import "chrome/browser/ui/cocoa/image_utils.h"
14 #include "content/browser/user_metrics.h" 13 #include "content/browser/user_metrics.h"
15 #include "grit/generated_resources.h" 14 #include "grit/generated_resources.h"
16 #include "ui/base/l10n/l10n_util_mac.h" 15 #include "ui/base/l10n/l10n_util_mac.h"
16 #include "ui/gfx/mac/nsimage_cache.h"
17 17
18 18
19 @interface BookmarkButtonCell(Private) 19 @interface BookmarkButtonCell(Private)
20 - (void)configureBookmarkButtonCell; 20 - (void)configureBookmarkButtonCell;
21 @end 21 @end
22 22
23 23
24 @implementation BookmarkButtonCell 24 @implementation BookmarkButtonCell
25 25
26 @synthesize startingChildIndex = startingChildIndex_; 26 @synthesize startingChildIndex = startingChildIndex_;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 NSRect drawRect = NSOffsetRect(imageRect, dX, dY); 242 NSRect drawRect = NSOffsetRect(imageRect, dX, dY);
243 [arrowImage_ drawInRect:drawRect 243 [arrowImage_ drawInRect:drawRect
244 fromRect:imageRect 244 fromRect:imageRect
245 operation:NSCompositeSourceOver 245 operation:NSCompositeSourceOver
246 fraction:[self isEnabled] ? 1.0 : 0.5 246 fraction:[self isEnabled] ? 1.0 : 0.5
247 neverFlipped:YES]; 247 neverFlipped:YES];
248 } 248 }
249 } 249 }
250 250
251 @end 251 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698