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

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

Issue 11146023: Work on separate browser contexts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another busted command line flag Created 8 years, 1 month 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 | Annotate | Revision Log
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_UI_BROWSER_COMMANDS_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_COMMANDS_H_
6 #define CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ 6 #define CHROME_BROWSER_UI_BROWSER_COMMANDS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/debugger/devtools_toggle_action.h" 10 #include "chrome/browser/debugger/devtools_toggle_action.h"
(...skipping 23 matching lines...) Expand all
34 int command, 34 int command,
35 WindowOpenDisposition disposition); 35 WindowOpenDisposition disposition);
36 void UpdateCommandEnabled(Browser* browser, int command, bool enabled); 36 void UpdateCommandEnabled(Browser* browser, int command, bool enabled);
37 void AddCommandObserver(Browser*, int command, CommandObserver* observer); 37 void AddCommandObserver(Browser*, int command, CommandObserver* observer);
38 void RemoveCommandObserver(Browser*, int command, CommandObserver* observer); 38 void RemoveCommandObserver(Browser*, int command, CommandObserver* observer);
39 39
40 int GetContentRestrictions(const Browser* browser); 40 int GetContentRestrictions(const Browser* browser);
41 41
42 // Opens a new window with the default blank tab. 42 // Opens a new window with the default blank tab.
43 void NewEmptyWindow(Profile* profile); 43 void NewEmptyWindow(Profile* profile);
44 void NewEmptyWindow(Profile* profile, HostDesktopType desktop_type);
44 45
45 // Opens a new window with the default blank tab. This bypasses metrics and 46 // Opens a new window with the default blank tab. This bypasses metrics and
46 // various internal bookkeeping; NewEmptyWindow (above) is preferred. 47 // various internal bookkeeping; NewEmptyWindow (above) is preferred.
47 Browser* OpenEmptyWindow(Profile* profile); 48 Browser* OpenEmptyWindow(Profile* profile);
49 Browser* OpenEmptyWindow(Profile* profile, HostDesktopType desktop_type);
48 50
49 // Opens a new window with the tabs from |profile|'s TabRestoreService. 51 // Opens a new window with the tabs from |profile|'s TabRestoreService.
50 void OpenWindowWithRestoredTabs(Profile* profile); 52 void OpenWindowWithRestoredTabs(Profile* profile);
51 53
52 // Opens the specified URL in a new browser window in an incognito session on 54 // Opens the specified URL in a new browser window in an incognito session on
53 // the desktop specified by |desktop_type|. If there is already an existing 55 // the desktop specified by |desktop_type|. If there is already an existing
54 // active incognito session for the specified |profile|, that session is re- 56 // active incognito session for the specified |profile|, that session is re-
55 // used. 57 // used.
56 void OpenURLOffTheRecord(Profile* profile, const GURL& url, 58 void OpenURLOffTheRecord(Profile* profile, const GURL& url,
57 chrome::HostDesktopType desktop_type); 59 chrome::HostDesktopType desktop_type);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 bool CanViewSource(const Browser* browser); 156 bool CanViewSource(const Browser* browser);
155 157
156 void CreateApplicationShortcuts(Browser* browser); 158 void CreateApplicationShortcuts(Browser* browser);
157 bool CanCreateApplicationShortcuts(const Browser* browser); 159 bool CanCreateApplicationShortcuts(const Browser* browser);
158 160
159 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); 161 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents);
160 162
161 } // namespace chrome 163 } // namespace chrome
162 164
163 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ 165 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc ('k') | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698