| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // Toggles the "Hide Notifications Icon" preference. | 150 // Toggles the "Hide Notifications Icon" preference. |
| 151 - (IBAction)toggleDisplayMessageCenter:(id)sender; | 151 - (IBAction)toggleDisplayMessageCenter:(id)sender; |
| 152 | 152 |
| 153 // Delegate method to return the dock menu. | 153 // Delegate method to return the dock menu. |
| 154 - (NSMenu*)applicationDockMenu:(NSApplication*)sender; | 154 - (NSMenu*)applicationDockMenu:(NSApplication*)sender; |
| 155 | 155 |
| 156 // Get the URLs that Launch Services expects the browser to open at startup. | 156 // Get the URLs that Launch Services expects the browser to open at startup. |
| 157 - (const std::vector<GURL>&)startupUrls; | 157 - (const std::vector<GURL>&)startupUrls; |
| 158 | 158 |
| 159 - (BookmarkMenuBridge*)bookmarkMenuBridge; | 159 - (BookmarkMenuBridge*)bookmarkMenuBridge; |
| 160 - (HistoryMenuBridge*)historyMenuBridge; |
| 160 | 161 |
| 161 // Subscribes/unsubscribes from the work area change notification. | 162 // Subscribes/unsubscribes from the work area change notification. |
| 162 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; | 163 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; |
| 163 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; | 164 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; |
| 164 | 165 |
| 165 // Initializes the AppShimMenuController. This enables changing the menu bar for | 166 // Initializes the AppShimMenuController. This enables changing the menu bar for |
| 166 // apps. | 167 // apps. |
| 167 - (void)initAppShimMenuController; | 168 - (void)initAppShimMenuController; |
| 168 | 169 |
| 169 // Called when the user has changed browser windows, meaning the backing profile | 170 // Called when the user has changed browser windows, meaning the backing profile |
| (...skipping 11 matching lines...) Expand all Loading... |
| 181 namespace app_controller_mac { | 182 namespace app_controller_mac { |
| 182 | 183 |
| 183 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in | 184 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in |
| 184 // SessionService::Observe() to get around windows/linux and mac having | 185 // SessionService::Observe() to get around windows/linux and mac having |
| 185 // different models of application lifetime. | 186 // different models of application lifetime. |
| 186 bool IsOpeningNewWindow(); | 187 bool IsOpeningNewWindow(); |
| 187 | 188 |
| 188 } // namespace app_controller_mac | 189 } // namespace app_controller_mac |
| 189 | 190 |
| 190 #endif | 191 #endif |
| OLD | NEW |