OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 13 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
14 #include "chrome/browser/download/download_item_model.h" | 14 #include "chrome/browser/download/download_item_model.h" |
15 #include "chrome/browser/download/download_shelf_context_menu.h" | 15 #include "chrome/browser/download/download_shelf_context_menu.h" |
16 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s
ampling.h" | 16 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s
ampling.h" |
17 #import "chrome/browser/themes/theme_properties.h" | 17 #import "chrome/browser/themes/theme_properties.h" |
18 #import "chrome/browser/themes/theme_service.h" | 18 #import "chrome/browser/themes/theme_service.h" |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 DownloadItem* download = bridge_->download_model()->download(); | 360 DownloadItem* download = bridge_->download_model()->download(); |
361 download->Remove(); | 361 download->Remove(); |
362 // WARNING: we are deleted at this point. Don't access 'this'. | 362 // WARNING: we are deleted at this point. Don't access 'this'. |
363 } | 363 } |
364 | 364 |
365 - (IBAction)showContextMenu:(id)sender { | 365 - (IBAction)showContextMenu:(id)sender { |
366 [progressView_ showContextMenu]; | 366 [progressView_ showContextMenu]; |
367 } | 367 } |
368 | 368 |
369 @end | 369 @end |
OLD | NEW |