Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/ui/cocoa/history_menu_cocoa_controller.mm

Issue 12036003: Move window_open_disposition.h from webkit/ into ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/history_menu_cocoa_controller.h" 5 #import "chrome/browser/ui/cocoa/history_menu_cocoa_controller.h"
6 6
7 #include "base/memory/scoped_vector.h" 7 #include "base/memory/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/history/history.h" 10 #include "chrome/browser/history/history.h"
11 #include "chrome/browser/history/history_types.h" 11 #include "chrome/browser/history/history_types.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/sessions/tab_restore_service.h" 13 #include "chrome/browser/sessions/tab_restore_service.h"
14 #include "chrome/browser/sessions/tab_restore_service_factory.h" 14 #include "chrome/browser/sessions/tab_restore_service_factory.h"
15 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/ui/browser_finder.h" 16 #include "chrome/browser/ui/browser_finder.h"
17 #include "chrome/browser/ui/browser_tab_restore_service_delegate.h" 17 #include "chrome/browser/ui/browser_tab_restore_service_delegate.h"
18 #include "chrome/browser/ui/cocoa/event_utils.h" 18 #include "chrome/browser/ui/cocoa/event_utils.h"
19 #include "chrome/browser/ui/host_desktop.h" 19 #include "chrome/browser/ui/host_desktop.h"
20 #include "webkit/glue/window_open_disposition.h" 20 #include "ui/base/window_open_disposition.h"
21 21
22 using content::OpenURLParams; 22 using content::OpenURLParams;
23 using content::Referrer; 23 using content::Referrer;
24 24
25 @implementation HistoryMenuCocoaController 25 @implementation HistoryMenuCocoaController
26 26
27 - (id)initWithBridge:(HistoryMenuBridge*)bridge { 27 - (id)initWithBridge:(HistoryMenuBridge*)bridge {
28 if ((self = [super init])) { 28 if ((self = [super init])) {
29 bridge_ = bridge; 29 bridge_ = bridge;
30 DCHECK(bridge_); 30 DCHECK(bridge_);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 } 63 }
64 64
65 - (IBAction)openHistoryMenuItem:(id)sender { 65 - (IBAction)openHistoryMenuItem:(id)sender {
66 const HistoryMenuBridge::HistoryItem* item = 66 const HistoryMenuBridge::HistoryItem* item =
67 bridge_->HistoryItemForMenuItem(sender); 67 bridge_->HistoryItemForMenuItem(sender);
68 [self openURLForItem:item]; 68 [self openURLForItem:item];
69 } 69 }
70 70
71 @end // HistoryMenuCocoaController 71 @end // HistoryMenuCocoaController
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/event_utils.h ('k') | chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698