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

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

Issue 240273002: Close the ntp during startup when opening a link on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reorder test header Created 6 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Toggles the "Confirm to Quit" preference. 118 // Toggles the "Confirm to Quit" preference.
119 - (IBAction)toggleConfirmToQuit:(id)sender; 119 - (IBAction)toggleConfirmToQuit:(id)sender;
120 120
121 // Delegate method to return the dock menu. 121 // Delegate method to return the dock menu.
122 - (NSMenu*)applicationDockMenu:(NSApplication*)sender; 122 - (NSMenu*)applicationDockMenu:(NSApplication*)sender;
123 123
124 // Get the URLs that Launch Services expects the browser to open at startup. 124 // Get the URLs that Launch Services expects the browser to open at startup.
125 - (const std::vector<GURL>&)startupUrls; 125 - (const std::vector<GURL>&)startupUrls;
126 126
127 // Clear the list of startup URLs.
128 - (void)clearStartupUrls;
129
130 - (BookmarkMenuBridge*)bookmarkMenuBridge; 127 - (BookmarkMenuBridge*)bookmarkMenuBridge;
131 128
132 // Subscribes/unsubscribes from the work area change notification. 129 // Subscribes/unsubscribes from the work area change notification.
133 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; 130 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer;
134 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; 131 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer;
135 132
136 // Initializes the AppShimMenuController. This enables changing the menu bar for 133 // Initializes the AppShimMenuController. This enables changing the menu bar for
137 // apps. 134 // apps.
138 - (void)initAppShimMenuController; 135 - (void)initAppShimMenuController;
139 136
140 @end 137 @end
141 138
142 #endif // __OBJC__ 139 #endif // __OBJC__
143 140
144 // Functions that may be accessed from non-Objective-C C/C++ code. 141 // Functions that may be accessed from non-Objective-C C/C++ code.
145 142
146 namespace app_controller_mac { 143 namespace app_controller_mac {
147 144
148 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in 145 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in
149 // SessionService::Observe() to get around windows/linux and mac having 146 // SessionService::Observe() to get around windows/linux and mac having
150 // different models of application lifetime. 147 // different models of application lifetime.
151 bool IsOpeningNewWindow(); 148 bool IsOpeningNewWindow();
152 149
153 } // namespace app_controller_mac 150 } // namespace app_controller_mac
154 151
155 #endif 152 #endif
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | chrome/browser/app_controller_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698