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

Side by Side Diff: chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm

Issue 12279015: Mac Chromium style checker cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/wrench_menu/wrench_menu_controller.h" 5 #import "chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/mac/bundle_locations.h" 8 #include "base/mac/bundle_locations.h"
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 30 matching lines...) Expand all
41 - (int)maxWidthForMenuModel:(ui::MenuModel*)model 41 - (int)maxWidthForMenuModel:(ui::MenuModel*)model
42 modelIndex:(int)modelIndex; 42 modelIndex:(int)modelIndex;
43 @end 43 @end
44 44
45 namespace WrenchMenuControllerInternal { 45 namespace WrenchMenuControllerInternal {
46 46
47 // A C++ delegate that handles the accelerators in the wrench menu. 47 // A C++ delegate that handles the accelerators in the wrench menu.
48 class AcceleratorDelegate : public ui::AcceleratorProvider { 48 class AcceleratorDelegate : public ui::AcceleratorProvider {
49 public: 49 public:
50 virtual bool GetAcceleratorForCommandId(int command_id, 50 virtual bool GetAcceleratorForCommandId(int command_id,
51 ui::Accelerator* out_accelerator) { 51 ui::Accelerator* out_accelerator) OVERRIDE {
52 AcceleratorsCocoa* keymap = AcceleratorsCocoa::GetInstance(); 52 AcceleratorsCocoa* keymap = AcceleratorsCocoa::GetInstance();
53 const ui::Accelerator* accelerator = 53 const ui::Accelerator* accelerator =
54 keymap->GetAcceleratorForCommand(command_id); 54 keymap->GetAcceleratorForCommand(command_id);
55 if (!accelerator) 55 if (!accelerator)
56 return false; 56 return false;
57 *out_accelerator = *accelerator; 57 *out_accelerator = *accelerator;
58 return true; 58 return true;
59 } 59 }
60 }; 60 };
61 61
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 controller_ = controller; 356 controller_ = controller;
357 } 357 }
358 return self; 358 return self;
359 } 359 }
360 360
361 - (IBAction)dispatchWrenchMenuCommand:(id)sender { 361 - (IBAction)dispatchWrenchMenuCommand:(id)sender {
362 [controller_ dispatchWrenchMenuCommand:sender]; 362 [controller_ dispatchWrenchMenuCommand:sender];
363 } 363 }
364 364
365 @end // @implementation WrenchMenuButtonViewController 365 @end // @implementation WrenchMenuButtonViewController
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698