| 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/devtools/devtools_toggle_action.h" | 10 #include "chrome/browser/devtools/devtools_toggle_action.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |