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

Unified Diff: ui/snapshot/screenshot_grabber.h

Issue 2167613003: Hide mouse cursor when screenshot is taking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit adjustment 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: ui/snapshot/screenshot_grabber.h
diff --git a/ui/snapshot/screenshot_grabber.h b/ui/snapshot/screenshot_grabber.h
index 4484be62161ef161306c3ccb5c2d5eac60987ada..555f863d870ba2042d1d2e044583591a7ed14966 100644
--- a/ui/snapshot/screenshot_grabber.h
+++ b/ui/snapshot/screenshot_grabber.h
@@ -76,6 +76,10 @@ class SNAPSHOT_EXPORT ScreenshotGrabber {
bool HasObserver(const ScreenshotGrabberObserver* observer) const;
private:
+#if defined(USE_AURA)
+ class ScopedCursorHider;
+#endif
+
void GrabWindowSnapshotAsyncCallback(
const std::string& window_identifier,
base::FilePath screenshot_path,
@@ -91,6 +95,11 @@ class SNAPSHOT_EXPORT ScreenshotGrabber {
// Task runner for blocking tasks.
scoped_refptr<base::TaskRunner> blocking_task_runner_;
+#if defined(USE_AURA)
+ // The object to hide cursor when taking screenshot.
+ std::unique_ptr<ScopedCursorHider> cursor_hider_;
+#endif
+
base::ObserverList<ScreenshotGrabberObserver> observers_;
base::WeakPtrFactory<ScreenshotGrabber> factory_;
« 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