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 23 matching lines...) Expand all Loading... |
34 bool ExecuteCommandWithDisposition(Browser* browser, | 34 bool ExecuteCommandWithDisposition(Browser* browser, |
35 int command, | 35 int command, |
36 WindowOpenDisposition disposition); | 36 WindowOpenDisposition disposition); |
37 void UpdateCommandEnabled(Browser* browser, int command, bool enabled); | 37 void UpdateCommandEnabled(Browser* browser, int command, bool enabled); |
38 void AddCommandObserver(Browser*, int command, CommandObserver* observer); | 38 void AddCommandObserver(Browser*, int command, CommandObserver* observer); |
39 void RemoveCommandObserver(Browser*, int command, CommandObserver* observer); | 39 void RemoveCommandObserver(Browser*, int command, CommandObserver* observer); |
40 | 40 |
41 int GetContentRestrictions(const Browser* browser); | 41 int GetContentRestrictions(const Browser* browser); |
42 | 42 |
43 // Opens a new window with the default blank tab. | 43 // Opens a new window with the default blank tab. |
44 void NewEmptyWindow(Profile* profile, HostDesktopType desktop_type); | 44 void NewEmptyWindow(Profile* profile, ui::HostDesktopType desktop_type); |
45 | 45 |
46 // 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 |
47 // various internal bookkeeping; NewEmptyWindow (above) is preferred. | 47 // various internal bookkeeping; NewEmptyWindow (above) is preferred. |
48 Browser* OpenEmptyWindow(Profile* profile, HostDesktopType desktop_type); | 48 Browser* OpenEmptyWindow(Profile* profile, ui::HostDesktopType desktop_type); |
49 | 49 |
50 // Opens a new window with the tabs from |profile|'s TabRestoreService. | 50 // Opens a new window with the tabs from |profile|'s TabRestoreService. |
51 void OpenWindowWithRestoredTabs(Profile* profile, | 51 void OpenWindowWithRestoredTabs(Profile* profile, |
52 HostDesktopType host_desktop_type); | 52 ui::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, |
59 chrome::HostDesktopType desktop_type); | 59 const GURL& url, |
| 60 ui::HostDesktopType desktop_type); |
60 | 61 |
61 bool CanGoBack(const Browser* browser); | 62 bool CanGoBack(const Browser* browser); |
62 void GoBack(Browser* browser, WindowOpenDisposition disposition); | 63 void GoBack(Browser* browser, WindowOpenDisposition disposition); |
63 bool CanGoForward(const Browser* browser); | 64 bool CanGoForward(const Browser* browser); |
64 void GoForward(Browser* browser, WindowOpenDisposition disposition); | 65 void GoForward(Browser* browser, WindowOpenDisposition disposition); |
65 bool NavigateToIndexWithDisposition(Browser* browser, | 66 bool NavigateToIndexWithDisposition(Browser* browser, |
66 int index, | 67 int index, |
67 WindowOpenDisposition disposition); | 68 WindowOpenDisposition disposition); |
68 void Reload(Browser* browser, WindowOpenDisposition disposition); | 69 void Reload(Browser* browser, WindowOpenDisposition disposition); |
69 void ReloadIgnoringCache(Browser* browser, WindowOpenDisposition disposition); | 70 void ReloadIgnoringCache(Browser* browser, WindowOpenDisposition disposition); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 void CreateApplicationShortcuts(Browser* browser); | 167 void CreateApplicationShortcuts(Browser* browser); |
167 void CreateBookmarkAppFromCurrentWebContents(Browser* browser); | 168 void CreateBookmarkAppFromCurrentWebContents(Browser* browser); |
168 bool CanCreateApplicationShortcuts(const Browser* browser); | 169 bool CanCreateApplicationShortcuts(const Browser* browser); |
169 bool CanCreateBookmarkApp(const Browser* browser); | 170 bool CanCreateBookmarkApp(const Browser* browser); |
170 | 171 |
171 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); | 172 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); |
172 | 173 |
173 } // namespace chrome | 174 } // namespace chrome |
174 | 175 |
175 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ | 176 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ |
OLD | NEW |