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

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

Issue 2616963002: Remove unused Canvas::DrawStringRectWithShadows(). (Closed)
Patch Set: more iwyu Created 3 years, 11 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
« no previous file with comments | « ash/magnifier/partial_magnification_controller.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/download/download_item_cell.h" 5 #import "chrome/browser/ui/cocoa/download/download_item_cell.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/sys_string_conversions.h" 8 #include "base/strings/sys_string_conversions.h"
9 #include "chrome/browser/download/download_item_model.h" 9 #include "chrome/browser/download/download_item_model.h"
10 #include "chrome/browser/download/download_shelf.h" 10 #include "chrome/browser/download/download_shelf.h"
11 #import "chrome/browser/themes/theme_properties.h" 11 #import "chrome/browser/themes/theme_properties.h"
12 #import "chrome/browser/ui/cocoa/download/background_theme.h" 12 #import "chrome/browser/ui/cocoa/download/background_theme.h"
13 #import "chrome/browser/ui/cocoa/themed_window.h" 13 #import "chrome/browser/ui/cocoa/themed_window.h"
14 #include "chrome/grit/theme_resources.h" 14 #include "chrome/grit/theme_resources.h"
15 #include "content/public/browser/download_item.h" 15 #include "content/public/browser/download_item.h"
16 #include "content/public/browser/download_manager.h" 16 #include "content/public/browser/download_manager.h"
17 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h " 17 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h "
18 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSColor+Luminance.h" 18 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSColor+Luminance.h"
19 #include "ui/base/default_theme_provider.h" 19 #include "ui/base/default_theme_provider.h"
20 #include "ui/gfx/canvas_skia_paint.h" 20 #include "ui/gfx/canvas_skia_paint.h"
21 #include "ui/gfx/font_list.h" 21 #include "ui/gfx/font_list.h"
22 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 22 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
23 #include "ui/gfx/shadow_value.h"
23 #include "ui/gfx/text_elider.h" 24 #include "ui/gfx/text_elider.h"
24 #include "ui/native_theme/native_theme.h" 25 #include "ui/native_theme/native_theme.h"
25 26
26 // Distance from top border to icon. 27 // Distance from top border to icon.
27 const CGFloat kImagePaddingTop = 7; 28 const CGFloat kImagePaddingTop = 7;
28 29
29 // Distance from left border to icon. 30 // Distance from left border to icon.
30 const CGFloat kImagePaddingLeft = 9; 31 const CGFloat kImagePaddingLeft = 9;
31 32
32 // Horizontal distance from the icon to the text. 33 // Horizontal distance from the icon to the text.
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 764
764 - (void)invalidate { 765 - (void)invalidate {
765 [timer_ invalidate]; 766 [timer_ invalidate];
766 } 767 }
767 768
768 - (void)onTimer:(NSTimer*)timer { 769 - (void)onTimer:(NSTimer*)timer {
769 [cell_ updateIndeterminateDownload]; 770 [cell_ updateIndeterminateDownload];
770 } 771 }
771 772
772 @end 773 @end
OLDNEW
« no previous file with comments | « ash/magnifier/partial_magnification_controller.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698