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_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 Loading... | |
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 |
OLD | NEW |