| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void OpenWindowWithRestoredTabs(Profile* profile, | 51 void OpenWindowWithRestoredTabs(Profile* profile, |
| 52 HostDesktopType host_desktop_type); | 52 HostDesktopType host_desktop_type); |
| 53 | 53 |
| 54 // 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 |
| 55 // 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 |
| 56 // active incognito session for the specified |profile|, that session is re- | 56 // active incognito session for the specified |profile|, that session is re- |
| 57 // used. | 57 // used. |
| 58 void OpenURLOffTheRecord(Profile* profile, const GURL& url, | 58 void OpenURLOffTheRecord(Profile* profile, const GURL& url, |
| 59 chrome::HostDesktopType desktop_type); | 59 chrome::HostDesktopType desktop_type); |
| 60 | 60 |
| 61 // On Windows with Ash, checks whether Chrome is running in Metro mode and |
| 62 // returns HOST_DESKTOP_TYPE_ASH, to ensure all browsers are created in Metro |
| 63 // mode. Otherwise returns |desktop_type|. |
| 64 HostDesktopType GetVerifiedHostDesktopForBrowser(HostDesktopType desktop_type); |
| 65 |
| 61 bool CanGoBack(const Browser* browser); | 66 bool CanGoBack(const Browser* browser); |
| 62 void GoBack(Browser* browser, WindowOpenDisposition disposition); | 67 void GoBack(Browser* browser, WindowOpenDisposition disposition); |
| 63 bool CanGoForward(const Browser* browser); | 68 bool CanGoForward(const Browser* browser); |
| 64 void GoForward(Browser* browser, WindowOpenDisposition disposition); | 69 void GoForward(Browser* browser, WindowOpenDisposition disposition); |
| 65 bool NavigateToIndexWithDisposition(Browser* browser, | 70 bool NavigateToIndexWithDisposition(Browser* browser, |
| 66 int index, | 71 int index, |
| 67 WindowOpenDisposition disp); | 72 WindowOpenDisposition disp); |
| 68 void Reload(Browser* browser, WindowOpenDisposition disposition); | 73 void Reload(Browser* browser, WindowOpenDisposition disposition); |
| 69 void ReloadIgnoringCache(Browser* browser, WindowOpenDisposition disposition); | 74 void ReloadIgnoringCache(Browser* browser, WindowOpenDisposition disposition); |
| 70 bool CanReload(const Browser* browser); | 75 bool CanReload(const Browser* browser); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 bool CanViewSource(const Browser* browser); | 163 bool CanViewSource(const Browser* browser); |
| 159 | 164 |
| 160 void CreateApplicationShortcuts(Browser* browser); | 165 void CreateApplicationShortcuts(Browser* browser); |
| 161 bool CanCreateApplicationShortcuts(const Browser* browser); | 166 bool CanCreateApplicationShortcuts(const Browser* browser); |
| 162 | 167 |
| 163 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); | 168 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); |
| 164 | 169 |
| 165 } // namespace chrome | 170 } // namespace chrome |
| 166 | 171 |
| 167 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ | 172 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ |
| OLD | NEW |