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

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

Issue 1041313003: MacViews: Remove BrowserWindowController dependency from AppController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@titlebar
Patch Set: Fix tests Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 scoped_ptr<HandoffActiveURLObserverBridge> 105 scoped_ptr<HandoffActiveURLObserverBridge>
106 handoff_active_url_observer_bridge_; 106 handoff_active_url_observer_bridge_;
107 107
108 // This will be true after receiving a NSWorkspaceWillPowerOffNotification. 108 // This will be true after receiving a NSWorkspaceWillPowerOffNotification.
109 BOOL isPoweringOff_; 109 BOOL isPoweringOff_;
110 } 110 }
111 111
112 @property(readonly, nonatomic) BOOL startupComplete; 112 @property(readonly, nonatomic) BOOL startupComplete;
113 @property(readonly, nonatomic) Profile* lastProfile; 113 @property(readonly, nonatomic) Profile* lastProfile;
114 114
115 // Helper method used to update the "Signin" menu item in the main menu and the
116 // wrench menu to reflect the current signed in state.
117 + (void)updateSigninItem:(id)signinItem
118 shouldShow:(BOOL)showSigninMenuItem
119 currentProfile:(Profile*)profile;
120
115 - (void)didEndMainMessageLoop; 121 - (void)didEndMainMessageLoop;
116 122
117 // Try to close all browser windows, and if that succeeds then quit. 123 // Try to close all browser windows, and if that succeeds then quit.
118 - (BOOL)tryToTerminateApplication:(NSApplication*)app; 124 - (BOOL)tryToTerminateApplication:(NSApplication*)app;
119 125
120 // Stop trying to terminate the application. That is, prevent the final browser 126 // Stop trying to terminate the application. That is, prevent the final browser
121 // window closure from causing the application to quit. 127 // window closure from causing the application to quit.
122 - (void)stopTryingToTerminateApplication:(NSApplication*)app; 128 - (void)stopTryingToTerminateApplication:(NSApplication*)app;
123 129
124 // Indicate that the system is powering off or logging out. 130 // Indicate that the system is powering off or logging out.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 namespace app_controller_mac { 181 namespace app_controller_mac {
176 182
177 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in 183 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in
178 // SessionService::Observe() to get around windows/linux and mac having 184 // SessionService::Observe() to get around windows/linux and mac having
179 // different models of application lifetime. 185 // different models of application lifetime.
180 bool IsOpeningNewWindow(); 186 bool IsOpeningNewWindow();
181 187
182 } // namespace app_controller_mac 188 } // namespace app_controller_mac
183 189
184 #endif 190 #endif
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698