OLD | NEW |
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/cocoa/download_item_controller.h" | 5 #import "chrome/browser/cocoa/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" | 8 #include "app/resource_bundle.h" |
9 #include "app/text_elider.h" | 9 #include "app/text_elider.h" |
10 #include "base/histogram.h" | 10 #include "base/histogram.h" |
11 #include "base/mac_util.h" | 11 #include "base/mac_util.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #import "chrome/browser/browser_theme_provider.h" | |
16 #import "chrome/browser/cocoa/download_item_button.h" | 15 #import "chrome/browser/cocoa/download_item_button.h" |
17 #import "chrome/browser/cocoa/download_item_cell.h" | 16 #import "chrome/browser/cocoa/download_item_cell.h" |
18 #include "chrome/browser/cocoa/download_item_mac.h" | 17 #include "chrome/browser/cocoa/download_item_mac.h" |
19 #import "chrome/browser/cocoa/download_shelf_controller.h" | 18 #import "chrome/browser/cocoa/download_shelf_controller.h" |
20 #import "chrome/browser/cocoa/themed_window.h" | 19 #import "chrome/browser/cocoa/themed_window.h" |
21 #import "chrome/browser/cocoa/ui_localizer.h" | 20 #import "chrome/browser/cocoa/ui_localizer.h" |
22 #include "chrome/browser/download/download_item.h" | 21 #include "chrome/browser/download/download_item.h" |
23 #include "chrome/browser/download/download_item_model.h" | 22 #include "chrome/browser/download/download_item_model.h" |
24 #include "chrome/browser/download/download_shelf.h" | 23 #include "chrome/browser/download/download_shelf.h" |
25 #include "chrome/browser/download/download_util.h" | 24 #include "chrome/browser/download/download_util.h" |
| 25 #import "chrome/browser/themes/browser_theme_provider.h" |
26 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
27 #include "grit/theme_resources.h" | 27 #include "grit/theme_resources.h" |
28 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 28 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 // NOTE: Mac currently doesn't use this like Windows does. Mac uses this to | 32 // NOTE: Mac currently doesn't use this like Windows does. Mac uses this to |
33 // control the min size on the dangerous download text. TVL sent a query off to | 33 // control the min size on the dangerous download text. TVL sent a query off to |
34 // UX to fully spec all the the behaviors of download items and truncations | 34 // UX to fully spec all the the behaviors of download items and truncations |
35 // rules so all platforms can get inline in the future. | 35 // rules so all platforms can get inline in the future. |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 [sender setTitle:l10n_util::GetNSStringWithFixup( | 383 [sender setTitle:l10n_util::GetNSStringWithFixup( |
384 IDS_DOWNLOAD_MENU_PAUSE_ITEM)]; | 384 IDS_DOWNLOAD_MENU_PAUSE_ITEM)]; |
385 } else { | 385 } else { |
386 [sender setTitle:l10n_util::GetNSStringWithFixup( | 386 [sender setTitle:l10n_util::GetNSStringWithFixup( |
387 IDS_DOWNLOAD_MENU_RESUME_ITEM)]; | 387 IDS_DOWNLOAD_MENU_RESUME_ITEM)]; |
388 } | 388 } |
389 menuBridge_->ExecuteCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE); | 389 menuBridge_->ExecuteCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE); |
390 } | 390 } |
391 | 391 |
392 @end | 392 @end |
OLD | NEW |