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" | |
9 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
10 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
11 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
12 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
13 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 13 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
15 #include "chrome/browser/download/download_item_model.h" | 14 #include "chrome/browser/download/download_item_model.h" |
16 #include "chrome/browser/download/download_shelf_context_menu.h" | 15 #include "chrome/browser/download/download_shelf_context_menu.h" |
17 #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" |
18 #import "chrome/browser/themes/theme_properties.h" | 17 #import "chrome/browser/themes/theme_properties.h" |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 base::scoped_nsobject<DownloadShelfContextMenuController> menuController( | 373 base::scoped_nsobject<DownloadShelfContextMenuController> menuController( |
375 [[DownloadShelfContextMenuController alloc] | 374 [[DownloadShelfContextMenuController alloc] |
376 initWithItemController:self | 375 initWithItemController:self |
377 withDelegate:nil]); | 376 withDelegate:nil]); |
378 [NSMenu popUpContextMenu:[menuController menu] | 377 [NSMenu popUpContextMenu:[menuController menu] |
379 withEvent:[NSApp currentEvent] | 378 withEvent:[NSApp currentEvent] |
380 forView:[self view]]; | 379 forView:[self view]]; |
381 } | 380 } |
382 | 381 |
383 @end | 382 @end |
OLD | NEW |