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

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

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | 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 #import "chrome/browser/ui/cocoa/download/download_item_controller.h" 5 #import "chrome/browser/ui/cocoa/download/download_item_controller.h"
6 6
7 #include "app/l10n_util_mac.h" 7 #include "app/l10n_util_mac.h"
8 #include "app/resource_bundle.h"
9 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
10 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
11 #include "base/string16.h" 10 #include "base/string16.h"
12 #include "base/string_util.h" 11 #include "base/string_util.h"
13 #include "base/sys_string_conversions.h" 12 #include "base/sys_string_conversions.h"
14 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
15 #include "chrome/browser/download/download_item.h" 14 #include "chrome/browser/download/download_item.h"
16 #include "chrome/browser/download/download_item_model.h" 15 #include "chrome/browser/download/download_item_model.h"
17 #include "chrome/browser/download/download_shelf.h" 16 #include "chrome/browser/download/download_shelf.h"
18 #include "chrome/browser/download/download_util.h" 17 #include "chrome/browser/download/download_util.h"
19 #import "chrome/browser/themes/browser_theme_provider.h" 18 #import "chrome/browser/themes/browser_theme_provider.h"
20 #import "chrome/browser/ui/cocoa/download/download_item_button.h" 19 #import "chrome/browser/ui/cocoa/download/download_item_button.h"
21 #import "chrome/browser/ui/cocoa/download/download_item_cell.h" 20 #import "chrome/browser/ui/cocoa/download/download_item_cell.h"
22 #include "chrome/browser/ui/cocoa/download/download_item_mac.h" 21 #include "chrome/browser/ui/cocoa/download/download_item_mac.h"
23 #import "chrome/browser/ui/cocoa/download/download_shelf_controller.h" 22 #import "chrome/browser/ui/cocoa/download/download_shelf_controller.h"
24 #import "chrome/browser/ui/cocoa/themed_window.h" 23 #import "chrome/browser/ui/cocoa/themed_window.h"
25 #import "chrome/browser/ui/cocoa/ui_localizer.h" 24 #import "chrome/browser/ui/cocoa/ui_localizer.h"
26 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
27 #include "grit/theme_resources.h" 26 #include "grit/theme_resources.h"
28 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 27 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
28 #include "ui/base/resource/resource_bundle.h"
29 #include "ui/base/text/text_elider.h" 29 #include "ui/base/text/text_elider.h"
30 30
31 namespace { 31 namespace {
32 32
33 // NOTE: Mac currently doesn't use this like Windows does. Mac uses this to 33 // NOTE: Mac currently doesn't use this like Windows does. Mac uses this to
34 // control the min size on the dangerous download text. TVL sent a query off to 34 // control the min size on the dangerous download text. TVL sent a query off to
35 // UX to fully spec all the the behaviors of download items and truncations 35 // UX to fully spec all the the behaviors of download items and truncations
36 // rules so all platforms can get inline in the future. 36 // rules so all platforms can get inline in the future.
37 const int kTextWidth = 140; // Pixels 37 const int kTextWidth = 140; // Pixels
38 38
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 [sender setTitle:l10n_util::GetNSStringWithFixup( 392 [sender setTitle:l10n_util::GetNSStringWithFixup(
393 IDS_DOWNLOAD_MENU_PAUSE_ITEM)]; 393 IDS_DOWNLOAD_MENU_PAUSE_ITEM)];
394 } else { 394 } else {
395 [sender setTitle:l10n_util::GetNSStringWithFixup( 395 [sender setTitle:l10n_util::GetNSStringWithFixup(
396 IDS_DOWNLOAD_MENU_RESUME_ITEM)]; 396 IDS_DOWNLOAD_MENU_RESUME_ITEM)];
397 } 397 }
398 menuBridge_->ExecuteCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE); 398 menuBridge_->ExecuteCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE);
399 } 399 }
400 400
401 @end 401 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698