Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: chrome/browser/ui/browser_commands.h

Issue 1697183003: Remove HostDesktopType from sessions and tab restore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-19
Patch Set: mac Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/chrome_new_window_delegate.cc ('k') | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698