| 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 #ifndef CHROME_BROWSER_UI_COCOA_PROFILE_MENU_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILE_MENU_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_PROFILE_MENU_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PROFILE_MENU_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // The main menu item to which the profile menu is attached. | 33 // The main menu item to which the profile menu is attached. |
| 34 __weak NSMenuItem* mainMenuItem_; | 34 __weak NSMenuItem* mainMenuItem_; |
| 35 } | 35 } |
| 36 | 36 |
| 37 // Designated initializer. | 37 // Designated initializer. |
| 38 - (id)initWithMainMenuItem:(NSMenuItem*)item; | 38 - (id)initWithMainMenuItem:(NSMenuItem*)item; |
| 39 | 39 |
| 40 // Actions for the menu items. | 40 // Actions for the menu items. |
| 41 - (IBAction)switchToProfile:(id)sender; | 41 - (IBAction)switchToProfile:(id)sender; |
| 42 - (IBAction)editCurrentProfile:(id)sender; |
| 42 - (IBAction)editProfile:(id)sender; | 43 - (IBAction)editProfile:(id)sender; |
| 43 - (IBAction)newProfile:(id)sender; | 44 - (IBAction)newProfile:(id)sender; |
| 44 | 45 |
| 45 @end | 46 @end |
| 46 | 47 |
| 47 @interface ProfileMenuController (PrivateExposedForTesting) | 48 @interface ProfileMenuController (PrivateExposedForTesting) |
| 48 - (NSMenu*)menu; | 49 - (NSMenu*)menu; |
| 49 - (void)rebuildMenu; | 50 - (void)rebuildMenu; |
| 50 - (NSMenuItem*)createItemWithTitle:(NSString*)title action:(SEL)sel; | 51 - (NSMenuItem*)createItemWithTitle:(NSString*)title action:(SEL)sel; |
| 51 - (void)activeBrowserChangedTo:(Browser*)browser; | 52 - (void)activeBrowserChangedTo:(Browser*)browser; |
| 52 @end | 53 @end |
| 53 | 54 |
| 54 #endif // CHROME_BROWSER_UI_COCOA_PROFILE_MENU_CONTROLLER_H_ | 55 #endif // CHROME_BROWSER_UI_COCOA_PROFILE_MENU_CONTROLLER_H_ |
| OLD | NEW |