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

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

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fixed pointed problems. Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 1008
1009 // Create a preference dictionary for the provided application name, in the 1009 // Create a preference dictionary for the provided application name, in the
1010 // given user profile. This is done only once per application name / per 1010 // given user profile. This is done only once per application name / per
1011 // session / per user profile. 1011 // session / per user profile.
1012 static void RegisterAppPrefs(const std::string& app_name, Profile* profile); 1012 static void RegisterAppPrefs(const std::string& app_name, Profile* profile);
1013 1013
1014 // Shared code between Reload() and ReloadIgnoringCache(). 1014 // Shared code between Reload() and ReloadIgnoringCache().
1015 void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache); 1015 void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache);
1016 1016
1017 // Return true if the window dispositions means opening a new tab. 1017 // Return true if the window dispositions means opening a new tab.
1018 bool ShouldOpenNewTabForWindowDisposition(WindowOpenDisposition disposition); 1018 bool ShouldOpenNewTabForDisposition(WindowOpenDisposition disposition);
1019 1019
1020 // Depending on the disposition, return the current tab or a clone of the 1020 // Depending on the disposition, return the current tab or a clone of the
1021 // current tab. 1021 // current tab.
1022 TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition); 1022 TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition);
1023 1023
1024 // Depending on the disposition, return the wrapper containing the current
1025 // tab or a clone of the current tab.
1026 TabContentsWrapper* GetOrCloneTabWrapperForDisposition(
1027 WindowOpenDisposition disposition);
1028
1029 // Depending on the disposition, create a new browser.
1030 void CreateNewBrowserForDisposition(TabContentsWrapper* tab_contents,
1031 WindowOpenDisposition disposition);
1032
1024 // Sets the insertion policy of the tabstrip based on whether vertical tabs 1033 // Sets the insertion policy of the tabstrip based on whether vertical tabs
1025 // are enabled. 1034 // are enabled.
1026 void UpdateTabStripModelInsertionPolicy(); 1035 void UpdateTabStripModelInsertionPolicy();
1027 1036
1028 // Invoked when the use vertical tabs preference changes. Resets the insertion 1037 // Invoked when the use vertical tabs preference changes. Resets the insertion
1029 // policy of the tab strip model and notifies the window. 1038 // policy of the tab strip model and notifies the window.
1030 void UseVerticalTabsChanged(); 1039 void UseVerticalTabsChanged();
1031 1040
1032 // Implementation of SupportsWindowFeature and CanSupportWindowFeature. If 1041 // Implementation of SupportsWindowFeature and CanSupportWindowFeature. If
1033 // |check_fullscreen| is true, the set of features reflect the actual state of 1042 // |check_fullscreen| is true, the set of features reflect the actual state of
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 // Helper which implements the TabRestoreServiceDelegate interface. 1208 // Helper which implements the TabRestoreServiceDelegate interface.
1200 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; 1209 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_;
1201 1210
1202 scoped_ptr<InstantController> instant_; 1211 scoped_ptr<InstantController> instant_;
1203 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; 1212 scoped_ptr<InstantUnloadHandler> instant_unload_handler_;
1204 1213
1205 DISALLOW_COPY_AND_ASSIGN(Browser); 1214 DISALLOW_COPY_AND_ASSIGN(Browser);
1206 }; 1215 };
1207 1216
1208 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1217 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698