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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Download utility implementation for Mac OS X. 5 // Download utility implementation for Mac OS X.
6 6
7 #include "chrome/browser/ui/cocoa/download/download_util_mac.h" 7 #include "chrome/browser/ui/cocoa/download/download_util_mac.h"
8 8
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "chrome/browser/download/download_item.h" 10 #include "chrome/browser/download/download_item.h"
11 #include "chrome/browser/download/download_manager.h" 11 #include "chrome/browser/download/download_manager.h"
12 #import "chrome/browser/ui/cocoa/dock_icon.h" 12 #import "chrome/browser/ui/cocoa/dock_icon.h"
13 #include "gfx/native_widget_types.h"
14 #include "skia/ext/skia_utils_mac.h" 13 #include "skia/ext/skia_utils_mac.h"
14 #include "ui/gfx/native_widget_types.h"
15 15
16 namespace download_util { 16 namespace download_util {
17 17
18 void AddFileToPasteboard(NSPasteboard* pasteboard, const FilePath& path) { 18 void AddFileToPasteboard(NSPasteboard* pasteboard, const FilePath& path) {
19 // Write information about the file being dragged to the pasteboard. 19 // Write information about the file being dragged to the pasteboard.
20 NSString* file = base::SysUTF8ToNSString(path.value()); 20 NSString* file = base::SysUTF8ToNSString(path.value());
21 NSArray* fileList = [NSArray arrayWithObject:file]; 21 NSArray* fileList = [NSArray arrayWithObject:file];
22 [pasteboard declareTypes:[NSArray arrayWithObject:NSFilenamesPboardType] 22 [pasteboard declareTypes:[NSArray arrayWithObject:NSFilenamesPboardType]
23 owner:nil]; 23 owner:nil];
24 [pasteboard setPropertyList:fileList forType:NSFilenamesPboardType]; 24 [pasteboard setPropertyList:fileList forType:NSFilenamesPboardType];
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool progress_known, 74 bool progress_known,
75 float progress) { 75 float progress) {
76 DockIcon* dock_icon = [DockIcon sharedDockIcon]; 76 DockIcon* dock_icon = [DockIcon sharedDockIcon];
77 [dock_icon setDownloads:download_count]; 77 [dock_icon setDownloads:download_count];
78 [dock_icon setIndeterminate:!progress_known]; 78 [dock_icon setIndeterminate:!progress_known];
79 [dock_icon setProgress:progress]; 79 [dock_icon setProgress:progress];
80 [dock_icon updateIcon]; 80 [dock_icon updateIcon];
81 } 81 }
82 82
83 } // namespace download_util 83 } // namespace download_util
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_cell.mm ('k') | chrome/browser/ui/cocoa/extensions/browser_action_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698