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

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

Issue 12328029: Plumb HostDesktopType through BrowserListTabContentsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | 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/devtools/devtools_toggle_action.h" 10 #include "chrome/browser/devtools/devtools_toggle_action.h"
(...skipping 22 matching lines...) Expand all
33 bool ExecuteCommandWithDisposition(Browser* browser, 33 bool ExecuteCommandWithDisposition(Browser* browser,
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 NewEmptyWindowDeprecated(Profile* profile);
44 void NewEmptyWindow(Profile* profile, HostDesktopType desktop_type); 43 void NewEmptyWindow(Profile* profile, HostDesktopType desktop_type);
45 44
46 // Opens a new window with the default blank tab. This bypasses metrics and 45 // Opens a new window with the default blank tab. This bypasses metrics and
47 // various internal bookkeeping; NewEmptyWindow (above) is preferred. 46 // various internal bookkeeping; NewEmptyWindow (above) is preferred.
48 Browser* OpenEmptyWindow(Profile* profile, HostDesktopType desktop_type); 47 Browser* OpenEmptyWindow(Profile* profile, HostDesktopType desktop_type);
49 48
50 // Opens a new window with the tabs from |profile|'s TabRestoreService. 49 // Opens a new window with the tabs from |profile|'s TabRestoreService.
51 void OpenWindowWithRestoredTabs(Profile* profile, 50 void OpenWindowWithRestoredTabs(Profile* profile,
52 HostDesktopType host_desktop_type); 51 HostDesktopType host_desktop_type);
53 52
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 bool CanViewSource(const Browser* browser); 157 bool CanViewSource(const Browser* browser);
159 158
160 void CreateApplicationShortcuts(Browser* browser); 159 void CreateApplicationShortcuts(Browser* browser);
161 bool CanCreateApplicationShortcuts(const Browser* browser); 160 bool CanCreateApplicationShortcuts(const Browser* browser);
162 161
163 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); 162 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents);
164 163
165 } // namespace chrome 164 } // namespace chrome
166 165
167 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ 166 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/remote_debugging_server.cc ('k') | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698