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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 - (BookmarkMenuBridge*)bookmarkMenuBridge; | 135 - (BookmarkMenuBridge*)bookmarkMenuBridge; |
136 | 136 |
137 // Subscribes/unsubscribes from the work area change notification. | 137 // Subscribes/unsubscribes from the work area change notification. |
138 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; | 138 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; |
139 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; | 139 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; |
140 | 140 |
141 // Initializes the AppShimMenuController. This enables changing the menu bar for | 141 // Initializes the AppShimMenuController. This enables changing the menu bar for |
142 // apps. | 142 // apps. |
143 - (void)initAppShimMenuController; | 143 - (void)initAppShimMenuController; |
144 | 144 |
| 145 // Called when the user has changed browser windows, meaning the backing profile |
| 146 // may have changed. This can cause a rebuild of the user-data menus. This is a |
| 147 // no-op if the new profile is the same as the current one. This will always be |
| 148 // the original profile and never incognito. |
| 149 - (void)windowChangedToProfile:(Profile*)profile; |
| 150 |
145 @end | 151 @end |
146 | 152 |
147 #endif // __OBJC__ | 153 #endif // __OBJC__ |
148 | 154 |
149 // Functions that may be accessed from non-Objective-C C/C++ code. | 155 // Functions that may be accessed from non-Objective-C C/C++ code. |
150 | 156 |
151 namespace app_controller_mac { | 157 namespace app_controller_mac { |
152 | 158 |
153 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in | 159 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in |
154 // SessionService::Observe() to get around windows/linux and mac having | 160 // SessionService::Observe() to get around windows/linux and mac having |
155 // different models of application lifetime. | 161 // different models of application lifetime. |
156 bool IsOpeningNewWindow(); | 162 bool IsOpeningNewWindow(); |
157 | 163 |
158 } // namespace app_controller_mac | 164 } // namespace app_controller_mac |
159 | 165 |
160 #endif | 166 #endif |
OLD | NEW |