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