Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1024 | 1024 |
| 1025 // Create a preference dictionary for the provided application name, in the | 1025 // Create a preference dictionary for the provided application name, in the |
| 1026 // given user profile. This is done only once per application name / per | 1026 // given user profile. This is done only once per application name / per |
| 1027 // session / per user profile. | 1027 // session / per user profile. |
| 1028 static void RegisterAppPrefs(const std::string& app_name, Profile* profile); | 1028 static void RegisterAppPrefs(const std::string& app_name, Profile* profile); |
| 1029 | 1029 |
| 1030 // Shared code between Reload() and ReloadIgnoringCache(). | 1030 // Shared code between Reload() and ReloadIgnoringCache(). |
| 1031 void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache); | 1031 void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache); |
| 1032 | 1032 |
| 1033 // Return true if the window dispositions means opening a new tab. | 1033 // Return true if the window dispositions means opening a new tab. |
| 1034 bool ShouldOpenNewTabForWindowDisposition(WindowOpenDisposition disposition); | 1034 bool ShouldOpenNewTabForDisposition(WindowOpenDisposition disposition); |
| 1035 | 1035 |
| 1036 // Depending on the disposition, return the current tab or a clone of the | 1036 // Depending on the disposition, return the current tab or a clone of the |
| 1037 // current tab. | 1037 // current tab. |
| 1038 TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition); | 1038 TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition); |
| 1039 | 1039 |
| 1040 // Depending on the disposition, return the wrapper containing the current | |
| 1041 // tab or a clone of the current tab. | |
| 1042 TabContentsWrapper* GetOrCloneTabWrapperForDisposition( | |
| 1043 WindowOpenDisposition disposition); | |
| 1044 | |
| 1045 // Depending on the disposition, create a new browser. | |
| 1046 void CreateNewBrowserForDisposition(TabContentsWrapper* tab_contents, | |
| 1047 WindowOpenDisposition disposition); | |
|
Ben Goodger (Google)
2011/05/31 16:00:00
You don't note here what happens to |tab_contents|
shinyak (Google)
2011/06/09 02:29:04
Done.
| |
| 1048 | |
| 1040 // Sets the insertion policy of the tabstrip based on whether vertical tabs | 1049 // Sets the insertion policy of the tabstrip based on whether vertical tabs |
| 1041 // are enabled. | 1050 // are enabled. |
| 1042 void UpdateTabStripModelInsertionPolicy(); | 1051 void UpdateTabStripModelInsertionPolicy(); |
| 1043 | 1052 |
| 1044 // Invoked when the use vertical tabs preference changes. Resets the insertion | 1053 // Invoked when the use vertical tabs preference changes. Resets the insertion |
| 1045 // policy of the tab strip model and notifies the window. | 1054 // policy of the tab strip model and notifies the window. |
| 1046 void UseVerticalTabsChanged(); | 1055 void UseVerticalTabsChanged(); |
| 1047 | 1056 |
| 1048 // Invoked when the use of the compact navigation bar preference changes. | 1057 // Invoked when the use of the compact navigation bar preference changes. |
| 1049 // Notifies the window. | 1058 // Notifies the window. |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1222 // Helper which implements the TabRestoreServiceDelegate interface. | 1231 // Helper which implements the TabRestoreServiceDelegate interface. |
| 1223 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; | 1232 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; |
| 1224 | 1233 |
| 1225 scoped_ptr<InstantController> instant_; | 1234 scoped_ptr<InstantController> instant_; |
| 1226 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; | 1235 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; |
| 1227 | 1236 |
| 1228 DISALLOW_COPY_AND_ASSIGN(Browser); | 1237 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1229 }; | 1238 }; |
| 1230 | 1239 |
| 1231 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1240 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |