| 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" |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 break; | 345 break; |
| 346 | 346 |
| 347 // Page-related commands | 347 // Page-related commands |
| 348 case IDC_SAVE_PAGE: | 348 case IDC_SAVE_PAGE: |
| 349 SavePage(browser_); | 349 SavePage(browser_); |
| 350 break; | 350 break; |
| 351 case IDC_BOOKMARK_PAGE: | 351 case IDC_BOOKMARK_PAGE: |
| 352 BookmarkCurrentPage(browser_); | 352 BookmarkCurrentPage(browser_); |
| 353 break; | 353 break; |
| 354 case IDC_PIN_TO_START_SCREEN: | 354 case IDC_PIN_TO_START_SCREEN: |
| 355 PinCurrentPageToStartScreen(browser_); | 355 TogglePagePinnedToStartScreen(browser_); |
| 356 break; | 356 break; |
| 357 case IDC_BOOKMARK_ALL_TABS: | 357 case IDC_BOOKMARK_ALL_TABS: |
| 358 BookmarkAllTabs(browser_); | 358 BookmarkAllTabs(browser_); |
| 359 break; | 359 break; |
| 360 case IDC_VIEW_SOURCE: | 360 case IDC_VIEW_SOURCE: |
| 361 ViewSelectedSource(browser_); | 361 ViewSelectedSource(browser_); |
| 362 break; | 362 break; |
| 363 case IDC_EMAIL_PAGE_LOCATION: | 363 case IDC_EMAIL_PAGE_LOCATION: |
| 364 EmailPageLocation(browser_); | 364 EmailPageLocation(browser_); |
| 365 break; | 365 break; |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 | 1066 |
| 1067 BrowserWindow* BrowserCommandController::window() { | 1067 BrowserWindow* BrowserCommandController::window() { |
| 1068 return browser_->window(); | 1068 return browser_->window(); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 Profile* BrowserCommandController::profile() { | 1071 Profile* BrowserCommandController::profile() { |
| 1072 return browser_->profile(); | 1072 return browser_->profile(); |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 } // namespace chrome | 1075 } // namespace chrome |
| OLD | NEW |