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/ui/cocoa/history_menu_cocoa_controller.h" | 5 #import "chrome/browser/ui/cocoa/history_menu_cocoa_controller.h" |
6 | 6 |
7 #include "base/scoped_vector.h" | 7 #include "base/scoped_vector.h" |
8 #include "chrome/app/chrome_command_ids.h" // IDC_HISTORY_MENU | 8 #include "chrome/app/chrome_command_ids.h" // IDC_HISTORY_MENU |
9 #import "chrome/browser/app_controller_mac.h" | 9 #import "chrome/browser/app_controller_mac.h" |
10 #include "chrome/browser/browser_process.h" | |
11 #include "chrome/browser/history/history.h" | 10 #include "chrome/browser/history/history.h" |
12 #include "chrome/browser/history/history_types.h" | 11 #include "chrome/browser/history/history_types.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
15 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/cocoa/event_utils.h" | 15 #include "chrome/browser/ui/cocoa/event_utils.h" |
17 #include "webkit/glue/window_open_disposition.h" | 16 #include "webkit/glue/window_open_disposition.h" |
18 | 17 |
19 @implementation HistoryMenuCocoaController | 18 @implementation HistoryMenuCocoaController |
20 | 19 |
(...skipping 28 matching lines...) Expand all Loading... |
49 } | 48 } |
50 } | 49 } |
51 | 50 |
52 - (IBAction)openHistoryMenuItem:(id)sender { | 51 - (IBAction)openHistoryMenuItem:(id)sender { |
53 const HistoryMenuBridge::HistoryItem* item = | 52 const HistoryMenuBridge::HistoryItem* item = |
54 bridge_->HistoryItemForMenuItem(sender); | 53 bridge_->HistoryItemForMenuItem(sender); |
55 [self openURLForItem:item]; | 54 [self openURLForItem:item]; |
56 } | 55 } |
57 | 56 |
58 @end // HistoryMenuCocoaController | 57 @end // HistoryMenuCocoaController |
OLD | NEW |