| 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" |
| 11 #include "chrome/browser/ui/host_desktop.h" |
| 11 #include "content/public/common/page_zoom.h" | 12 #include "content/public/common/page_zoom.h" |
| 12 #include "webkit/glue/window_open_disposition.h" | 13 #include "webkit/glue/window_open_disposition.h" |
| 13 | 14 |
| 14 class Browser; | 15 class Browser; |
| 15 class CommandObserver; | 16 class CommandObserver; |
| 16 class GURL; | 17 class GURL; |
| 17 class Profile; | 18 class Profile; |
| 18 class TabContents; | 19 class TabContents; |
| 19 | 20 |
| 20 namespace content { | 21 namespace content { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 41 // Opens a new window with the default blank tab. | 42 // Opens a new window with the default blank tab. |
| 42 void NewEmptyWindow(Profile* profile); | 43 void NewEmptyWindow(Profile* profile); |
| 43 | 44 |
| 44 // 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 |
| 45 // various internal bookkeeping; NewEmptyWindow (above) is preferred. | 46 // various internal bookkeeping; NewEmptyWindow (above) is preferred. |
| 46 Browser* OpenEmptyWindow(Profile* profile); | 47 Browser* OpenEmptyWindow(Profile* profile); |
| 47 | 48 |
| 48 // Opens a new window with the tabs from |profile|'s TabRestoreService. | 49 // Opens a new window with the tabs from |profile|'s TabRestoreService. |
| 49 void OpenWindowWithRestoredTabs(Profile* profile); | 50 void OpenWindowWithRestoredTabs(Profile* profile); |
| 50 | 51 |
| 51 // Opens the specified URL in a new browser window in an incognito session. | 52 // Opens the specified URL in a new browser window in an incognito session on |
| 52 // If there is already an existing active incognito session for the specified | 53 // the desktop specified by |desktop_type|. If there is already an existing |
| 53 // |profile|, that session is re-used. | 54 // active incognito session for the specified |profile|, that session is re- |
| 54 void OpenURLOffTheRecord(Profile* profile, const GURL& url); | 55 // used. |
| 56 void OpenURLOffTheRecord(Profile* profile, const GURL& url, |
| 57 chrome::HostDesktopType desktop_type); |
| 55 | 58 |
| 56 bool CanGoBack(const Browser* browser); | 59 bool CanGoBack(const Browser* browser); |
| 57 void GoBack(Browser* browser, WindowOpenDisposition disposition); | 60 void GoBack(Browser* browser, WindowOpenDisposition disposition); |
| 58 bool CanGoForward(const Browser* browser); | 61 bool CanGoForward(const Browser* browser); |
| 59 void GoForward(Browser* browser, WindowOpenDisposition disposition); | 62 void GoForward(Browser* browser, WindowOpenDisposition disposition); |
| 60 bool NavigateToIndexWithDisposition(Browser* browser, | 63 bool NavigateToIndexWithDisposition(Browser* browser, |
| 61 int index, | 64 int index, |
| 62 WindowOpenDisposition disp); | 65 WindowOpenDisposition disp); |
| 63 void Reload(Browser* browser, WindowOpenDisposition disposition); | 66 void Reload(Browser* browser, WindowOpenDisposition disposition); |
| 64 void ReloadIgnoringCache(Browser* browser, WindowOpenDisposition disposition); | 67 void ReloadIgnoringCache(Browser* browser, WindowOpenDisposition disposition); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 bool CanViewSource(const Browser* browser); | 155 bool CanViewSource(const Browser* browser); |
| 153 | 156 |
| 154 void CreateApplicationShortcuts(Browser* browser); | 157 void CreateApplicationShortcuts(Browser* browser); |
| 155 bool CanCreateApplicationShortcuts(const Browser* browser); | 158 bool CanCreateApplicationShortcuts(const Browser* browser); |
| 156 | 159 |
| 157 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); | 160 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); |
| 158 | 161 |
| 159 } // namespace chrome | 162 } // namespace chrome |
| 160 | 163 |
| 161 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ | 164 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ |
| OLD | NEW |