| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_COCOA_APP_MENU_APP_MENU_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_APP_MENU_APP_MENU_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_APP_MENU_APP_MENU_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_APP_MENU_APP_MENU_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/mac/objc_property_releaser.h" | |
| 13 #import "base/mac/scoped_nsobject.h" | 12 #import "base/mac/scoped_nsobject.h" |
| 14 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 15 #import "chrome/browser/ui/cocoa/has_weak_browser_pointer.h" | 14 #import "chrome/browser/ui/cocoa/has_weak_browser_pointer.h" |
| 16 #import "ui/base/cocoa/menu_controller.h" | 15 #import "ui/base/cocoa/menu_controller.h" |
| 17 | 16 |
| 18 class BookmarkMenuBridge; | 17 class BookmarkMenuBridge; |
| 19 class Browser; | 18 class Browser; |
| 20 @class BrowserActionsContainerView; | 19 @class BrowserActionsContainerView; |
| 21 @class BrowserActionsController; | 20 @class BrowserActionsController; |
| 22 @class MenuTrackedRootView; | 21 @class MenuTrackedRootView; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 NSButton* editPaste_; | 124 NSButton* editPaste_; |
| 126 | 125 |
| 127 MenuTrackedRootView* zoomItem_; | 126 MenuTrackedRootView* zoomItem_; |
| 128 NSButton* zoomPlus_; | 127 NSButton* zoomPlus_; |
| 129 NSButton* zoomDisplay_; | 128 NSButton* zoomDisplay_; |
| 130 NSButton* zoomMinus_; | 129 NSButton* zoomMinus_; |
| 131 NSButton* zoomFullScreen_; | 130 NSButton* zoomFullScreen_; |
| 132 | 131 |
| 133 MenuTrackedRootView* toolbarActionsOverflowItem_; | 132 MenuTrackedRootView* toolbarActionsOverflowItem_; |
| 134 BrowserActionsContainerView* overflowActionsContainerView_; | 133 BrowserActionsContainerView* overflowActionsContainerView_; |
| 135 | |
| 136 base::mac::ObjCPropertyReleaser propertyReleaser_; | |
| 137 } | 134 } |
| 138 | 135 |
| 139 @property(retain, nonatomic) IBOutlet MenuTrackedRootView* editItem; | 136 @property(retain, nonatomic) IBOutlet MenuTrackedRootView* editItem; |
| 140 @property(retain, nonatomic) IBOutlet NSButton* editCut; | 137 @property(retain, nonatomic) IBOutlet NSButton* editCut; |
| 141 @property(retain, nonatomic) IBOutlet NSButton* editCopy; | 138 @property(retain, nonatomic) IBOutlet NSButton* editCopy; |
| 142 @property(retain, nonatomic) IBOutlet NSButton* editPaste; | 139 @property(retain, nonatomic) IBOutlet NSButton* editPaste; |
| 143 @property(retain, nonatomic) IBOutlet MenuTrackedRootView* zoomItem; | 140 @property(retain, nonatomic) IBOutlet MenuTrackedRootView* zoomItem; |
| 144 @property(retain, nonatomic) IBOutlet NSButton* zoomPlus; | 141 @property(retain, nonatomic) IBOutlet NSButton* zoomPlus; |
| 145 @property(retain, nonatomic) IBOutlet NSButton* zoomDisplay; | 142 @property(retain, nonatomic) IBOutlet NSButton* zoomDisplay; |
| 146 @property(retain, nonatomic) IBOutlet NSButton* zoomMinus; | 143 @property(retain, nonatomic) IBOutlet NSButton* zoomMinus; |
| 147 @property(retain, nonatomic) IBOutlet NSButton* zoomFullScreen; | 144 @property(retain, nonatomic) IBOutlet NSButton* zoomFullScreen; |
| 148 @property(retain, nonatomic) | 145 @property(retain, nonatomic) |
| 149 IBOutlet MenuTrackedRootView* toolbarActionsOverflowItem; | 146 IBOutlet MenuTrackedRootView* toolbarActionsOverflowItem; |
| 150 @property(retain, nonatomic) | 147 @property(retain, nonatomic) |
| 151 IBOutlet BrowserActionsContainerView* overflowActionsContainerView; | 148 IBOutlet BrowserActionsContainerView* overflowActionsContainerView; |
| 152 | 149 |
| 153 - (id)initWithController:(AppMenuController*)controller; | 150 - (id)initWithController:(AppMenuController*)controller; |
| 154 - (IBAction)dispatchAppMenuCommand:(id)sender; | 151 - (IBAction)dispatchAppMenuCommand:(id)sender; |
| 155 | 152 |
| 156 @end | 153 @end |
| 157 | 154 |
| 158 #endif // CHROME_BROWSER_UI_COCOA_APP_MENU_APP_MENU_CONTROLLER_H_ | 155 #endif // CHROME_BROWSER_UI_COCOA_APP_MENU_APP_MENU_CONTROLLER_H_ |
| OLD | NEW |