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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 kOsOverrideForTabletSite, | 953 kOsOverrideForTabletSite, |
954 content::GetContentClient()->GetProduct())); | 954 content::GetContentClient()->GetProduct())); |
955 } | 955 } |
956 controller.ReloadOriginalRequestURL(true); | 956 controller.ReloadOriginalRequestURL(true); |
957 } | 957 } |
958 | 958 |
959 void ToggleFullscreenMode(Browser* browser) { | 959 void ToggleFullscreenMode(Browser* browser) { |
960 browser->fullscreen_controller()->ToggleFullscreenMode(); | 960 browser->fullscreen_controller()->ToggleFullscreenMode(); |
961 } | 961 } |
962 | 962 |
| 963 #if defined(OS_MACOSX) |
| 964 void ToggleFullscreenWithChrome(Browser* browser) { |
| 965 browser->fullscreen_controller()->ToggleFullscreenWithChrome(); |
| 966 } |
| 967 #endif |
| 968 |
963 void ClearCache(Browser* browser) { | 969 void ClearCache(Browser* browser) { |
964 BrowsingDataRemover* remover = | 970 BrowsingDataRemover* remover = |
965 BrowsingDataRemover::CreateForUnboundedRange(browser->profile()); | 971 BrowsingDataRemover::CreateForUnboundedRange(browser->profile()); |
966 remover->Remove(BrowsingDataRemover::REMOVE_CACHE, | 972 remover->Remove(BrowsingDataRemover::REMOVE_CACHE, |
967 BrowsingDataHelper::UNPROTECTED_WEB); | 973 BrowsingDataHelper::UNPROTECTED_WEB); |
968 // BrowsingDataRemover takes care of deleting itself when done. | 974 // BrowsingDataRemover takes care of deleting itself when done. |
969 } | 975 } |
970 | 976 |
971 bool IsDebuggerAttachedToCurrentTab(Browser* browser) { | 977 bool IsDebuggerAttachedToCurrentTab(Browser* browser) { |
972 WebContents* contents = browser->tab_strip_model()->GetActiveWebContents(); | 978 WebContents* contents = browser->tab_strip_model()->GetActiveWebContents(); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 Browser::CreateParams::CreateForApp( | 1092 Browser::CreateParams::CreateForApp( |
1087 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile())); | 1093 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile())); |
1088 app_browser->tab_strip_model()->AppendWebContents(contents, true); | 1094 app_browser->tab_strip_model()->AppendWebContents(contents, true); |
1089 | 1095 |
1090 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; | 1096 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; |
1091 contents->GetRenderViewHost()->SyncRendererPrefs(); | 1097 contents->GetRenderViewHost()->SyncRendererPrefs(); |
1092 app_browser->window()->Show(); | 1098 app_browser->window()->Show(); |
1093 } | 1099 } |
1094 | 1100 |
1095 } // namespace chrome | 1101 } // namespace chrome |
OLD | NEW |