OLD | NEW |
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 13 matching lines...) Expand all Loading... |
24 #include "content/public/browser/notification_service.h" | 24 #include "content/public/browser/notification_service.h" |
25 #include "content/public/browser/notification_source.h" | 25 #include "content/public/browser/notification_source.h" |
26 #include "content/public/browser/notification_types.h" | 26 #include "content/public/browser/notification_types.h" |
27 #include "content/public/browser/user_metrics.h" | 27 #include "content/public/browser/user_metrics.h" |
28 #include "grit/chromium_strings.h" | 28 #include "grit/chromium_strings.h" |
29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
30 #include "ui/base/accelerators/accelerator_cocoa.h" | 30 #include "ui/base/accelerators/accelerator_cocoa.h" |
31 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
32 #include "ui/base/models/menu_model.h" | 32 #include "ui/base/models/menu_model.h" |
33 | 33 |
| 34 using content::HostZoomMap; |
34 using content::UserMetricsAction; | 35 using content::UserMetricsAction; |
35 | 36 |
36 @interface WrenchMenuController (Private) | 37 @interface WrenchMenuController (Private) |
37 - (void)createModel; | 38 - (void)createModel; |
38 - (void)adjustPositioning; | 39 - (void)adjustPositioning; |
39 - (void)performCommandDispatch:(NSNumber*)tag; | 40 - (void)performCommandDispatch:(NSNumber*)tag; |
40 - (NSButton*)zoomDisplay; | 41 - (NSButton*)zoomDisplay; |
41 - (void)removeAllItems:(NSMenu*)menu; | 42 - (void)removeAllItems:(NSMenu*)menu; |
42 @end | 43 @end |
43 | 44 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 controller_ = controller; | 327 controller_ = controller; |
327 } | 328 } |
328 return self; | 329 return self; |
329 } | 330 } |
330 | 331 |
331 - (IBAction)dispatchWrenchMenuCommand:(id)sender { | 332 - (IBAction)dispatchWrenchMenuCommand:(id)sender { |
332 [controller_ dispatchWrenchMenuCommand:sender]; | 333 [controller_ dispatchWrenchMenuCommand:sender]; |
333 } | 334 } |
334 | 335 |
335 @end // @implementation WrenchMenuButtonViewController | 336 @end // @implementation WrenchMenuButtonViewController |
OLD | NEW |