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

Side by Side Diff: chrome/browser/app_controller_mac.h

Issue 18089012: Swap main menu with app-specific menu when app window focused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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) 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_APP_CONTROLLER_MAC_H_ 5 #ifndef CHROME_BROWSER_APP_CONTROLLER_MAC_H_
6 #define CHROME_BROWSER_APP_CONTROLLER_MAC_H_ 6 #define CHROME_BROWSER_APP_CONTROLLER_MAC_H_
7 7
8 #if defined(__OBJC__) 8 #if defined(__OBJC__)
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // Clear the list of startup URLs. 116 // Clear the list of startup URLs.
117 - (void)clearStartupUrls; 117 - (void)clearStartupUrls;
118 118
119 - (BookmarkMenuBridge*)bookmarkMenuBridge; 119 - (BookmarkMenuBridge*)bookmarkMenuBridge;
120 120
121 // Subscribes/unsubscribes from the work area change notification. 121 // Subscribes/unsubscribes from the work area change notification.
122 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; 122 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer;
123 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; 123 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer;
124 124
125 // Sets the menu bar for a given app. This hides all menu items used by Chrome.
126 - (void)setMenuBarToApp:(NSString*)app_id
tapted 2013/06/28 04:09:43 argument should be appId
jackhou1 2013/07/04 01:57:55 Done.
127 withTitle:(NSString*)title;
128
129 // Restores menu items used by Chrome and hides app-specific menu items.
130 - (void)setMenuBarToChrome;
131
125 @end 132 @end
126 133
127 #endif // __OBJC__ 134 #endif // __OBJC__
128 135
129 // Functions that may be accessed from non-Objective-C C/C++ code. 136 // Functions that may be accessed from non-Objective-C C/C++ code.
130 137
131 namespace app_controller_mac { 138 namespace app_controller_mac {
132 139
133 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in 140 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in
134 // SessionService::Observe() to get around windows/linux and mac having 141 // SessionService::Observe() to get around windows/linux and mac having
135 // different models of application lifetime. 142 // different models of application lifetime.
136 bool IsOpeningNewWindow(); 143 bool IsOpeningNewWindow();
137 144
138 } // namespace app_controller_mac 145 } // namespace app_controller_mac
139 146
140 #endif 147 #endif
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | chrome/browser/app_controller_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698