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

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: ScopedCursorHide to manage the hide/show 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') | ui/snapshot/screenshot_grabber.cc » ('J')
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..a29f34bd21f85531804d3c51a9ba49882572c0fa 100644
--- a/ui/snapshot/screenshot_grabber.h
+++ b/ui/snapshot/screenshot_grabber.h
@@ -76,6 +76,13 @@ class SNAPSHOT_EXPORT ScreenshotGrabber {
bool HasObserver(const ScreenshotGrabberObserver* observer) const;
private:
+#if defined(USE_AURA)
+ class ScopedCursorHider;
+
+ // The object to hide cursor when taking screenshot.
+ std::unique_ptr<ScopedCursorHider> cursor_hider_;
sky 2016/07/22 16:14:44 members go after functions (see style guide).
Qiang(Joe) Xu 2016/07/22 20:15:26 Done.
+#endif
+
void GrabWindowSnapshotAsyncCallback(
const std::string& window_identifier,
base::FilePath screenshot_path,
« no previous file with comments | « no previous file | ui/snapshot/screenshot_grabber.cc » ('j') | ui/snapshot/screenshot_grabber.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698