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

Unified Diff: chrome/browser/ui/ash/chrome_screenshot_grabber.cc

Issue 2190773002: Fix Volume slider is captured in screenshot done in touchview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« ash/wm/power_button_controller.cc ('K') | « ash/wm/power_button_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/chrome_screenshot_grabber.cc
diff --git a/chrome/browser/ui/ash/chrome_screenshot_grabber.cc b/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
index a1078e6bd7bcee53a5e70b2aca17ef42d9c570e5..a3edcdabec8eed492b5d889554e81d461b1d7c08 100644
--- a/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
+++ b/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
@@ -7,6 +7,9 @@
#include <stddef.h>
#include "ash/common/system/system_notifier.h"
+#include "ash/common/system/tray/system_tray_notifier.h"
+#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "base/base64.h"
#include "base/bind.h"
@@ -394,6 +397,10 @@ void ChromeScreenshotGrabber::OnScreenshotCompleted(
g_browser_process->notification_ui_manager()->Add(*notification,
GetProfile());
}
+ ash::WmShell* wm_shell = ash::WmShell::Get();
+ if (wm_shell->maximize_mode_controller()
+ ->IsMaximizeModeWindowManagerEnabled())
+ wm_shell->system_tray_notifier()->NotifyDidTakeScreenshot();
}
Notification* ChromeScreenshotGrabber::CreateNotification(
« ash/wm/power_button_controller.cc ('K') | « ash/wm/power_button_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698