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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 // Clear the list of startup URLs. | 130 // Clear the list of startup URLs. |
131 - (void)clearStartupUrls; | 131 - (void)clearStartupUrls; |
132 | 132 |
133 - (BookmarkMenuBridge*)bookmarkMenuBridge; | 133 - (BookmarkMenuBridge*)bookmarkMenuBridge; |
134 | 134 |
135 // Subscribes/unsubscribes from the work area change notification. | 135 // Subscribes/unsubscribes from the work area change notification. |
136 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; | 136 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; |
137 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; | 137 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; |
138 | 138 |
| 139 // Initializes the AppShimMenuController. This enables changing the menu bar for |
| 140 // apps. |
| 141 - (void)initAppShimMenuController; |
| 142 |
139 @end | 143 @end |
140 | 144 |
141 #endif // __OBJC__ | 145 #endif // __OBJC__ |
142 | 146 |
143 // Functions that may be accessed from non-Objective-C C/C++ code. | 147 // Functions that may be accessed from non-Objective-C C/C++ code. |
144 | 148 |
145 namespace app_controller_mac { | 149 namespace app_controller_mac { |
146 | 150 |
147 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in | 151 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in |
148 // SessionService::Observe() to get around windows/linux and mac having | 152 // SessionService::Observe() to get around windows/linux and mac having |
149 // different models of application lifetime. | 153 // different models of application lifetime. |
150 bool IsOpeningNewWindow(); | 154 bool IsOpeningNewWindow(); |
151 | 155 |
152 } // namespace app_controller_mac | 156 } // namespace app_controller_mac |
153 | 157 |
154 #endif | 158 #endif |
OLD | NEW |