OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/ui/browser_commands.h" | 5 #include "chrome/browser/ui/browser_commands.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 kOsOverrideForTabletSite, | 961 kOsOverrideForTabletSite, |
962 content::GetContentClient()->GetProduct())); | 962 content::GetContentClient()->GetProduct())); |
963 } | 963 } |
964 controller.ReloadOriginalRequestURL(true); | 964 controller.ReloadOriginalRequestURL(true); |
965 } | 965 } |
966 | 966 |
967 void ToggleFullscreenMode(Browser* browser) { | 967 void ToggleFullscreenMode(Browser* browser) { |
968 browser->fullscreen_controller()->ToggleFullscreenMode(); | 968 browser->fullscreen_controller()->ToggleFullscreenMode(); |
969 } | 969 } |
970 | 970 |
| 971 #if defined(OS_MACOSX) |
| 972 void ToggleFullscreenWithChrome(Browser* browser) { |
| 973 browser->fullscreen_controller()->ToggleFullscreenWithChrome(); |
| 974 } |
| 975 #endif |
| 976 |
971 void ClearCache(Browser* browser) { | 977 void ClearCache(Browser* browser) { |
972 BrowsingDataRemover* remover = | 978 BrowsingDataRemover* remover = |
973 BrowsingDataRemover::CreateForUnboundedRange(browser->profile()); | 979 BrowsingDataRemover::CreateForUnboundedRange(browser->profile()); |
974 remover->Remove(BrowsingDataRemover::REMOVE_CACHE, | 980 remover->Remove(BrowsingDataRemover::REMOVE_CACHE, |
975 BrowsingDataHelper::UNPROTECTED_WEB); | 981 BrowsingDataHelper::UNPROTECTED_WEB); |
976 // BrowsingDataRemover takes care of deleting itself when done. | 982 // BrowsingDataRemover takes care of deleting itself when done. |
977 } | 983 } |
978 | 984 |
979 bool IsDebuggerAttachedToCurrentTab(Browser* browser) { | 985 bool IsDebuggerAttachedToCurrentTab(Browser* browser) { |
980 WebContents* contents = browser->tab_strip_model()->GetActiveWebContents(); | 986 WebContents* contents = browser->tab_strip_model()->GetActiveWebContents(); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 Browser::CreateParams::CreateForApp( | 1100 Browser::CreateParams::CreateForApp( |
1095 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile())); | 1101 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile())); |
1096 app_browser->tab_strip_model()->AppendWebContents(contents, true); | 1102 app_browser->tab_strip_model()->AppendWebContents(contents, true); |
1097 | 1103 |
1098 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; | 1104 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; |
1099 contents->GetRenderViewHost()->SyncRendererPrefs(); | 1105 contents->GetRenderViewHost()->SyncRendererPrefs(); |
1100 app_browser->window()->Show(); | 1106 app_browser->window()->Show(); |
1101 } | 1107 } |
1102 | 1108 |
1103 } // namespace chrome | 1109 } // namespace chrome |
OLD | NEW |