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" | |
11 #include "base/mac_util.h" | 10 #include "base/mac_util.h" |
12 #include "base/sys_string_conversions.h" | 11 #include "base/sys_string_conversions.h" |
13 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
14 #import "chrome/browser/browser_theme_provider.h" | 13 #import "chrome/browser/browser_theme_provider.h" |
15 #import "chrome/browser/cocoa/download_item_button.h" | 14 #import "chrome/browser/cocoa/download_item_button.h" |
16 #import "chrome/browser/cocoa/download_item_cell.h" | 15 #import "chrome/browser/cocoa/download_item_cell.h" |
17 #include "chrome/browser/cocoa/download_item_mac.h" | 16 #include "chrome/browser/cocoa/download_item_mac.h" |
18 #import "chrome/browser/cocoa/download_shelf_controller.h" | 17 #import "chrome/browser/cocoa/download_shelf_controller.h" |
19 #import "chrome/browser/cocoa/themed_window.h" | 18 #import "chrome/browser/cocoa/themed_window.h" |
20 #import "chrome/browser/cocoa/ui_localizer.h" | 19 #import "chrome/browser/cocoa/ui_localizer.h" |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 [sender setTitle:l10n_util::GetNSStringWithFixup( | 384 [sender setTitle:l10n_util::GetNSStringWithFixup( |
386 IDS_DOWNLOAD_MENU_PAUSE_ITEM)]; | 385 IDS_DOWNLOAD_MENU_PAUSE_ITEM)]; |
387 } else { | 386 } else { |
388 [sender setTitle:l10n_util::GetNSStringWithFixup( | 387 [sender setTitle:l10n_util::GetNSStringWithFixup( |
389 IDS_DOWNLOAD_MENU_RESUME_ITEM)]; | 388 IDS_DOWNLOAD_MENU_RESUME_ITEM)]; |
390 } | 389 } |
391 menuBridge_->ExecuteCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE); | 390 menuBridge_->ExecuteCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE); |
392 } | 391 } |
393 | 392 |
394 @end | 393 @end |
OLD | NEW |