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

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

Issue 2167613003: Hide mouse cursor when screenshot is taking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: show the cursor when screenshot completed 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
« no previous file with comments | « no previous file | ui/snapshot/screenshot_grabber.cc » ('j') | 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..9979dc17b675993334bfadceb724af8724f42843 100644
--- a/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
+++ b/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
@@ -377,6 +377,10 @@ void ChromeScreenshotGrabber::PrepareFileAndRunOnBlockingPool(
void ChromeScreenshotGrabber::OnScreenshotCompleted(
ui::ScreenshotGrabberObserver::Result result,
const base::FilePath& screenshot_path) {
+ // Cursor is hidden during the screenshot. Show it when screenshot completed.
+ ash::Shell* shell = ash::Shell::GetInstance();
+ if (shell->cursor_manager())
+ shell->cursor_manager()->ShowCursor();
sky 2016/07/21 19:40:26 Why is the show here and not in ScreenshotGrabber?
Qiang(Joe) Xu 2016/07/21 23:02:49 Thanks, based on the suggestion I got a updated ve
// Do not show a notification that a screenshot was taken while no user is
// logged in, since it is confusing for the user to get a message about it
// after he logs in (crbug.com/235217).
« no previous file with comments | « no previous file | ui/snapshot/screenshot_grabber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698