| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |