Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 885673004: Adding menu item to take screenshot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: All comments adressed Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_commands_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_command_controller.cc
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index b0ce210b3c06432e521016eb3b7321dc02743a26..44597dae04efef279162a8d361cceefbb1597330 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -66,6 +66,7 @@
#include "ash/shell.h"
#include "chrome/browser/ui/ash/multi_user/multi_user_context_menu.h"
#include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h"
+#include "chrome/browser/ui/browser_commands_chromeos.h"
#endif
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
@@ -695,6 +696,11 @@ void BrowserCommandController::ExecuteCommandWithDisposition(
case IDC_TASK_MANAGER:
OpenTaskManager(browser_);
break;
+#if defined(OS_CHROMEOS)
+ case IDC_TAKE_SCREENSHOT:
+ TakeScreenshot();
+ break;
+#endif
#if defined(GOOGLE_CHROME_BUILD)
case IDC_FEEDBACK:
OpenFeedbackDialog(browser_);
@@ -966,6 +972,7 @@ void BrowserCommandController::InitCommandState() {
!profile()->IsOffTheRecord());
command_updater_.UpdateCommandEnabled(IDC_CLEAR_BROWSING_DATA, normal_window);
#if defined(OS_CHROMEOS)
+ command_updater_.UpdateCommandEnabled(IDC_TAKE_SCREENSHOT, true);
command_updater_.UpdateCommandEnabled(IDC_TOUCH_HUD_PROJECTION_TOGGLE, true);
#else
// Chrome OS uses the system tray menu to handle multi-profiles.
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_commands_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698