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

Unified Diff: chrome/browser/ui/cocoa/profile_menu_controller.h

Issue 229163004: [Mac] Move profile related UI from cocoa/browser to cocoa/profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops forgot a comment Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/profile_menu_controller.h
diff --git a/chrome/browser/ui/cocoa/profile_menu_controller.h b/chrome/browser/ui/cocoa/profile_menu_controller.h
deleted file mode 100644
index ee0bbc6bc666f60b3ed3ff6a6cf733c3fc0e6677..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/profile_menu_controller.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_COCOA_PROFILE_MENU_CONTROLLER_H_
-#define CHROME_BROWSER_UI_COCOA_PROFILE_MENU_CONTROLLER_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/memory/scoped_ptr.h"
-
-class AvatarMenu;
-class Browser;
-
-namespace ProfileMenuControllerInternal {
-class Observer;
-}
-
-// This controller manages the title and submenu of the Profiles item in the
-// system menu bar. It updates the contents of the menu and the menu's title
-// whenever the active browser changes.
-@interface ProfileMenuController : NSObject {
- @private
- // The controller for the profile submenu.
- scoped_ptr<AvatarMenu> menu_;
-
- // An observer to be notified when the active browser changes and when the
- // menu model changes.
- scoped_ptr<ProfileMenuControllerInternal::Observer> observer_;
-
- // The main menu item to which the profile menu is attached.
- __weak NSMenuItem* mainMenuItem_;
-}
-
-// Designated initializer.
-- (id)initWithMainMenuItem:(NSMenuItem*)item;
-
-// Actions for the menu items.
-- (IBAction)switchToProfileFromMenu:(id)sender;
-- (IBAction)switchToProfileFromDock:(id)sender;
-- (IBAction)editProfile:(id)sender;
-- (IBAction)newProfile:(id)sender;
-
-// If profiles are enabled and there is more than one profile, this inserts
-// profile menu items into the specified menu at the specified offset and
-// returns YES. Otherwise, this returns NO and does not modify the menu.
-- (BOOL)insertItemsIntoMenu:(NSMenu*)menu
- atOffset:(NSInteger)offset
- fromDock:(BOOL)dock;
-
-@end
-
-@interface ProfileMenuController (PrivateExposedForTesting)
-- (NSMenu*)menu;
-- (void)rebuildMenu;
-- (NSMenuItem*)createItemWithTitle:(NSString*)title action:(SEL)sel;
-- (void)activeBrowserChangedTo:(Browser*)browser;
-@end
-
-#endif // CHROME_BROWSER_UI_COCOA_PROFILE_MENU_CONTROLLER_H_
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/ui/cocoa/profile_menu_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698