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

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

Issue 303030: Mac: Enable help when there are no windows. (Closed)
Patch Set: Created 11 years, 2 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_BROWSER_H_ 5 #ifndef CHROME_BROWSER_BROWSER_H_
6 #define CHROME_BROWSER_BROWSER_H_ 6 #define CHROME_BROWSER_BROWSER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 static void OpenEmptyWindow(Profile* profile); 148 static void OpenEmptyWindow(Profile* profile);
149 149
150 // Opens a new window with the tabs from |profile|'s TabRestoreService. 150 // Opens a new window with the tabs from |profile|'s TabRestoreService.
151 static void OpenWindowWithRestoredTabs(Profile* profile); 151 static void OpenWindowWithRestoredTabs(Profile* profile);
152 152
153 // Opens the specified URL in a new browser window in an incognito session. 153 // Opens the specified URL in a new browser window in an incognito session.
154 // If there is already an existing active incognito session for the specified 154 // If there is already an existing active incognito session for the specified
155 // |profile|, that session is re-used. 155 // |profile|, that session is re-used.
156 static void OpenURLOffTheRecord(Profile* profile, const GURL& url); 156 static void OpenURLOffTheRecord(Profile* profile, const GURL& url);
157 157
158 // Opens the a new application ("thin frame") window for the specified url. 158 // Opens a new application ("thin frame") window for the specified url.
159 static void OpenApplicationWindow(Profile* profile, const GURL& url); 159 static void OpenApplicationWindow(Profile* profile, const GURL& url);
160 160
161 #if defined(OS_MACOSX)
162 // Open a new window with help (needed on Mac when there are no windows).
163 static void OpenHelpWindow(Profile* profile);
164 #endif
165
161 // State Storage and Retrieval for UI /////////////////////////////////////// 166 // State Storage and Retrieval for UI ///////////////////////////////////////
162 167
163 // Save and restore the window position. 168 // Save and restore the window position.
164 std::wstring GetWindowPlacementKey() const; 169 std::wstring GetWindowPlacementKey() const;
165 bool ShouldSaveWindowPlacement() const; 170 bool ShouldSaveWindowPlacement() const;
166 void SaveWindowPlacement(const gfx::Rect& bounds, bool maximized); 171 void SaveWindowPlacement(const gfx::Rect& bounds, bool maximized);
167 gfx::Rect GetSavedWindowBounds() const; 172 gfx::Rect GetSavedWindowBounds() const;
168 bool GetSavedMaximizedState() const; 173 bool GetSavedMaximizedState() const;
169 174
170 // Gets the FavIcon of the page in the selected tab. 175 // Gets the FavIcon of the page in the selected tab.
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 // Dialog box used for opening and saving files. 802 // Dialog box used for opening and saving files.
798 scoped_refptr<SelectFileDialog> select_file_dialog_; 803 scoped_refptr<SelectFileDialog> select_file_dialog_;
799 804
800 // Keep track of the encoding auto detect pref. 805 // Keep track of the encoding auto detect pref.
801 BooleanPrefMember encoding_auto_detect_; 806 BooleanPrefMember encoding_auto_detect_;
802 807
803 DISALLOW_COPY_AND_ASSIGN(Browser); 808 DISALLOW_COPY_AND_ASSIGN(Browser);
804 }; 809 };
805 810
806 #endif // CHROME_BROWSER_BROWSER_H_ 811 #endif // CHROME_BROWSER_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698