| OLD | NEW |
| 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 #include "chrome/browser/ui/browser_command_controller.h" | 5 #include "chrome/browser/ui/browser_command_controller.h" |
| 6 | 6 |
| 7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/defaults.h" | 9 #include "chrome/browser/defaults.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
| 11 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 11 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 12 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
| 13 #include "chrome/browser/printing/print_preview_tab_controller.h" | 13 #include "chrome/browser/printing/print_preview_tab_controller.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
| 16 #include "chrome/browser/sessions/tab_restore_service.h" | 16 #include "chrome/browser/sessions/tab_restore_service.h" |
| 17 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 17 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
| 18 #include "chrome/browser/sync/profile_sync_service.h" | 18 #include "chrome/browser/sync/profile_sync_service.h" |
| 19 #include "chrome/browser/sync/profile_sync_service_factory.h" | 19 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 20 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 20 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
| 21 #include "chrome/browser/ui/browser.h" | 21 #include "chrome/browser/ui/browser.h" |
| 22 #include "chrome/browser/ui/browser_commands.h" | 22 #include "chrome/browser/ui/browser_commands.h" |
| 23 #include "chrome/browser/ui/browser_tabstrip.h" | 23 #include "chrome/browser/ui/browser_tabstrip.h" |
| 24 #include "chrome/browser/ui/browser_window.h" | 24 #include "chrome/browser/ui/browser_window.h" |
| 25 #include "chrome/browser/ui/chrome_pages.h" | 25 #include "chrome/browser/ui/chrome_pages.h" |
| 26 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" |
| 26 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 27 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 27 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 28 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 28 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | 29 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" |
| 29 #include "chrome/common/chrome_notification_types.h" | 30 #include "chrome/common/chrome_notification_types.h" |
| 30 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
| 31 #include "chrome/common/profiling.h" | 32 #include "chrome/common/profiling.h" |
| 32 #include "content/public/browser/native_web_keyboard_event.h" | 33 #include "content/public/browser/native_web_keyboard_event.h" |
| 33 #include "content/public/browser/navigation_controller.h" | 34 #include "content/public/browser/navigation_controller.h" |
| 34 #include "content/public/browser/navigation_entry.h" | 35 #include "content/public/browser/navigation_entry.h" |
| 35 #include "content/public/browser/notification_details.h" | 36 #include "content/public/browser/notification_details.h" |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 case IDC_DUPLICATE_TAB: | 319 case IDC_DUPLICATE_TAB: |
| 319 DuplicateTab(browser_); | 320 DuplicateTab(browser_); |
| 320 break; | 321 break; |
| 321 case IDC_RESTORE_TAB: | 322 case IDC_RESTORE_TAB: |
| 322 RestoreTab(browser_); | 323 RestoreTab(browser_); |
| 323 break; | 324 break; |
| 324 case IDC_SHOW_AS_TAB: | 325 case IDC_SHOW_AS_TAB: |
| 325 ConvertPopupToTabbedBrowser(browser_); | 326 ConvertPopupToTabbedBrowser(browser_); |
| 326 break; | 327 break; |
| 327 case IDC_FULLSCREEN: | 328 case IDC_FULLSCREEN: |
| 328 browser_->ToggleFullscreenMode(); | 329 browser_->fullscreen_controller()->ToggleFullscreenMode(); |
| 329 break; | 330 break; |
| 330 #if defined(OS_WIN) | 331 #if defined(OS_WIN) |
| 331 case IDC_METRO_SNAP_ENABLE: | 332 case IDC_METRO_SNAP_ENABLE: |
| 332 browser_->SetMetroSnapMode(true); | 333 browser_->SetMetroSnapMode(true); |
| 333 break; | 334 break; |
| 334 case IDC_METRO_SNAP_DISABLE: | 335 case IDC_METRO_SNAP_DISABLE: |
| 335 browser_->SetMetroSnapMode(false); | 336 browser_->SetMetroSnapMode(false); |
| 336 break; | 337 break; |
| 337 #endif | 338 #endif |
| 338 #if defined(OS_MACOSX) | 339 #if defined(OS_MACOSX) |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 | 1067 |
| 1067 BrowserWindow* BrowserCommandController::window() { | 1068 BrowserWindow* BrowserCommandController::window() { |
| 1068 return browser_->window(); | 1069 return browser_->window(); |
| 1069 } | 1070 } |
| 1070 | 1071 |
| 1071 Profile* BrowserCommandController::profile() { | 1072 Profile* BrowserCommandController::profile() { |
| 1072 return browser_->profile(); | 1073 return browser_->profile(); |
| 1073 } | 1074 } |
| 1074 | 1075 |
| 1075 } // namespace chrome | 1076 } // namespace chrome |
| OLD | NEW |