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

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

Issue 5544002: Move a bunch more browser stuff around.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/back_forward_menu_controller.h" 5 #import "chrome/browser/ui/cocoa/back_forward_menu_controller.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "chrome/browser/back_forward_menu_model.h"
11 #import "chrome/browser/ui/cocoa/delayedmenu_button.h" 10 #import "chrome/browser/ui/cocoa/delayedmenu_button.h"
12 #import "chrome/browser/ui/cocoa/event_utils.h" 11 #import "chrome/browser/ui/cocoa/event_utils.h"
12 #include "chrome/browser/ui/toolbar/back_forward_menu_model.h"
13 #include "skia/ext/skia_utils_mac.h" 13 #include "skia/ext/skia_utils_mac.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
15 15
16 using base::SysUTF16ToNSString; 16 using base::SysUTF16ToNSString;
17 using gfx::SkBitmapToNSImage; 17 using gfx::SkBitmapToNSImage;
18 18
19 @implementation BackForwardMenuController 19 @implementation BackForwardMenuController
20 20
21 // Accessors and mutators: 21 // Accessors and mutators:
22 22
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 - (void)executeMenuItem:(id)sender { 94 - (void)executeMenuItem:(id)sender {
95 DCHECK([sender isKindOfClass:[NSMenuItem class]]); 95 DCHECK([sender isKindOfClass:[NSMenuItem class]]);
96 int menuID = [sender tag]; 96 int menuID = [sender tag];
97 model_->ActivatedAtWithDisposition( 97 model_->ActivatedAtWithDisposition(
98 menuID, 98 menuID,
99 event_utils::WindowOpenDispositionFromNSEvent([NSApp currentEvent])); 99 event_utils::WindowOpenDispositionFromNSEvent([NSApp currentEvent]));
100 } 100 }
101 101
102 @end // @implementation BackForwardMenuController 102 @end // @implementation BackForwardMenuController
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/back_forward_menu_controller.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698