| OLD | NEW |
| 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_controller.h" | 5 #import "chrome/browser/ui/cocoa/download/download_item_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/bundle_locations.h" | 7 #include "base/mac/bundle_locations.h" |
| 8 #include "base/mac/mac_util.h" | 8 #include "base/mac/mac_util.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 14 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
| 15 #include "chrome/browser/download/download_item_model.h" | 15 #include "chrome/browser/download/download_item_model.h" |
| 16 #include "chrome/browser/download/download_shelf_context_menu.h" | 16 #include "chrome/browser/download/download_shelf_context_menu.h" |
| 17 #include "chrome/browser/download/download_util.h" | 17 #include "chrome/browser/download/download_util.h" |
| 18 #import "chrome/browser/themes/theme_properties.h" | 18 #import "chrome/browser/themes/theme_properties.h" |
| 19 #import "chrome/browser/themes/theme_service.h" | 19 #import "chrome/browser/themes/theme_service.h" |
| 20 #import "chrome/browser/ui/cocoa/download/download_item_button.h" | 20 #import "chrome/browser/ui/cocoa/download/download_item_button.h" |
| 21 #import "chrome/browser/ui/cocoa/download/download_item_cell.h" | 21 #import "chrome/browser/ui/cocoa/download/download_item_cell.h" |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 [sender setTitle:l10n_util::GetNSStringWithFixup( | 371 [sender setTitle:l10n_util::GetNSStringWithFixup( |
| 372 IDS_DOWNLOAD_MENU_PAUSE_ITEM)]; | 372 IDS_DOWNLOAD_MENU_PAUSE_ITEM)]; |
| 373 } else { | 373 } else { |
| 374 [sender setTitle:l10n_util::GetNSStringWithFixup( | 374 [sender setTitle:l10n_util::GetNSStringWithFixup( |
| 375 IDS_DOWNLOAD_MENU_RESUME_ITEM)]; | 375 IDS_DOWNLOAD_MENU_RESUME_ITEM)]; |
| 376 } | 376 } |
| 377 menuBridge_->ExecuteCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE, 0); | 377 menuBridge_->ExecuteCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE, 0); |
| 378 } | 378 } |
| 379 | 379 |
| 380 @end | 380 @end |
| OLD | NEW |