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 "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 int GetContentRestrictions(const Browser* browser); | 42 int GetContentRestrictions(const Browser* browser); |
43 | 43 |
44 // Opens a new window with the default blank tab. | 44 // Opens a new window with the default blank tab. |
45 void NewEmptyWindow(Profile* profile); | 45 void NewEmptyWindow(Profile* profile); |
46 | 46 |
47 // Opens a new window with the default blank tab. This bypasses metrics and | 47 // Opens a new window with the default blank tab. This bypasses metrics and |
48 // various internal bookkeeping; NewEmptyWindow (above) is preferred. | 48 // various internal bookkeeping; NewEmptyWindow (above) is preferred. |
49 Browser* OpenEmptyWindow(Profile* profile); | 49 Browser* OpenEmptyWindow(Profile* profile); |
50 | 50 |
51 // Opens a new window with the tabs from |profile|'s TabRestoreService. | 51 // Opens a new window with the tabs from |profile|'s TabRestoreService. |
52 void OpenWindowWithRestoredTabs(Profile* profile, | 52 void OpenWindowWithRestoredTabs(Profile* profile); |
53 HostDesktopType host_desktop_type); | |
54 | 53 |
55 // Opens the specified URL in a new browser window in an incognito session. If | 54 // Opens the specified URL in a new browser window in an incognito session. If |
56 // there is already an existing active incognito session for the specified | 55 // there is already an existing active incognito session for the specified |
57 // |profile|, that session is re- used. | 56 // |profile|, that session is re- used. |
58 void OpenURLOffTheRecord(Profile* profile, const GURL& url); | 57 void OpenURLOffTheRecord(Profile* profile, const GURL& url); |
59 | 58 |
60 bool CanGoBack(const Browser* browser); | 59 bool CanGoBack(const Browser* browser); |
61 void GoBack(Browser* browser, WindowOpenDisposition disposition); | 60 void GoBack(Browser* browser, WindowOpenDisposition disposition); |
62 bool CanGoForward(const Browser* browser); | 61 bool CanGoForward(const Browser* browser); |
63 void GoForward(Browser* browser, WindowOpenDisposition disposition); | 62 void GoForward(Browser* browser, WindowOpenDisposition disposition); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 void CreateApplicationShortcuts(Browser* browser); | 164 void CreateApplicationShortcuts(Browser* browser); |
166 void CreateBookmarkAppFromCurrentWebContents(Browser* browser); | 165 void CreateBookmarkAppFromCurrentWebContents(Browser* browser); |
167 bool CanCreateApplicationShortcuts(const Browser* browser); | 166 bool CanCreateApplicationShortcuts(const Browser* browser); |
168 bool CanCreateBookmarkApp(const Browser* browser); | 167 bool CanCreateBookmarkApp(const Browser* browser); |
169 | 168 |
170 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); | 169 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); |
171 | 170 |
172 } // namespace chrome | 171 } // namespace chrome |
173 | 172 |
174 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ | 173 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ |
OLD | NEW |