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

Side by Side Diff: chrome/browser/cocoa/download_item_cell.mm

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/cocoa/download_item_cell.h" 5 #import "chrome/browser/cocoa/download_item_cell.h"
6 6
7 #include "app/gfx/canvas_paint.h"
8 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
9 #include "app/text_elider.h" 8 #include "app/text_elider.h"
10 #include "base/mac_util.h" 9 #include "base/mac_util.h"
11 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
12 #import "chrome/browser/browser_theme_provider.h" 11 #import "chrome/browser/browser_theme_provider.h"
13 #import "chrome/browser/cocoa/download_item_cell.h" 12 #import "chrome/browser/cocoa/download_item_cell.h"
14 #import "chrome/browser/cocoa/themed_window.h" 13 #import "chrome/browser/cocoa/themed_window.h"
15 #include "chrome/browser/download/download_item_model.h" 14 #include "chrome/browser/download/download_item_model.h"
16 #include "chrome/browser/download/download_manager.h" 15 #include "chrome/browser/download/download_manager.h"
17 #include "chrome/browser/download/download_util.h" 16 #include "chrome/browser/download/download_util.h"
17 #include "gfx/canvas_paint.h"
18 #include "grit/theme_resources.h" 18 #include "grit/theme_resources.h"
19 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 19 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
20 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" 20 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h"
21 21
22 namespace { 22 namespace {
23 23
24 // Distance from top border to icon 24 // Distance from top border to icon
25 const CGFloat kImagePaddingTop = 7; 25 const CGFloat kImagePaddingTop = 7;
26 26
27 // Distance from left border to icon 27 // Distance from left border to icon
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 } 690 }
691 return self; 691 return self;
692 } 692 }
693 693
694 - (void)setCurrentProgress:(NSAnimationProgress)progress { 694 - (void)setCurrentProgress:(NSAnimationProgress)progress {
695 [super setCurrentProgress:progress]; 695 [super setCurrentProgress:progress];
696 [cell_ animation:self progressed:progress]; 696 [cell_ animation:self progressed:progress];
697 } 697 }
698 698
699 @end 699 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/bookmark_bar_toolbar_view.mm ('k') | chrome/browser/cocoa/extensions/browser_action_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698