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

Issue 2167613003: Hide mouse cursor when screenshot is taking (Closed)

Created:
4 years, 5 months ago by Qiang(Joe) Xu
Modified:
4 years, 5 months ago
Reviewers:
sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hide mouse cursor when screenshot is taking BUG=597270 TEST=device test saw bug away Committed: https://crrev.com/eb93d50aef7c4924b00d53c900208de7d604414c Cr-Commit-Position: refs/heads/master@{#407325}

Patch Set 1 #

Patch Set 2 : check nullptr #

Total comments: 2

Patch Set 3 : show the cursor when screenshot completed #

Total comments: 2

Patch Set 4 : ScopedCursorHide to manage the hide/show #

Total comments: 6

Patch Set 5 : based on last cr comments #

Total comments: 4

Patch Set 6 : nit adjustment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -0 lines) Patch
M ui/snapshot/screenshot_grabber.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M ui/snapshot/screenshot_grabber.cc View 1 2 3 4 5 4 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (26 generated)
Qiang(Joe) Xu
Hi sky@, could you help review on this? tks!
4 years, 5 months ago (2016-07-21 03:12:00 UTC) #11
sky
https://codereview.chromium.org/2167613003/diff/20001/ui/snapshot/screenshot_grabber.cc File ui/snapshot/screenshot_grabber.cc (right): https://codereview.chromium.org/2167613003/diff/20001/ui/snapshot/screenshot_grabber.cc#newcode142 ui/snapshot/screenshot_grabber.cc:142: cursor_client->HideCursor(); Aren't you missing a corresonding Show?
4 years, 5 months ago (2016-07-21 15:31:42 UTC) #12
Qiang(Joe) Xu
showing the cursor when screenshot is completed. https://codereview.chromium.org/2167613003/diff/20001/ui/snapshot/screenshot_grabber.cc File ui/snapshot/screenshot_grabber.cc (right): https://codereview.chromium.org/2167613003/diff/20001/ui/snapshot/screenshot_grabber.cc#newcode142 ui/snapshot/screenshot_grabber.cc:142: cursor_client->HideCursor(); On ...
4 years, 5 months ago (2016-07-21 17:48:26 UTC) #17
sky
https://codereview.chromium.org/2167613003/diff/40001/chrome/browser/ui/ash/chrome_screenshot_grabber.cc File chrome/browser/ui/ash/chrome_screenshot_grabber.cc (right): https://codereview.chromium.org/2167613003/diff/40001/chrome/browser/ui/ash/chrome_screenshot_grabber.cc#newcode383 chrome/browser/ui/ash/chrome_screenshot_grabber.cc:383: shell->cursor_manager()->ShowCursor(); Why is the show here and not in ...
4 years, 5 months ago (2016-07-21 19:40:26 UTC) #18
Qiang(Joe) Xu
https://codereview.chromium.org/2167613003/diff/40001/chrome/browser/ui/ash/chrome_screenshot_grabber.cc File chrome/browser/ui/ash/chrome_screenshot_grabber.cc (right): https://codereview.chromium.org/2167613003/diff/40001/chrome/browser/ui/ash/chrome_screenshot_grabber.cc#newcode383 chrome/browser/ui/ash/chrome_screenshot_grabber.cc:383: shell->cursor_manager()->ShowCursor(); On 2016/07/21 19:40:26, sky wrote: > Why is ...
4 years, 5 months ago (2016-07-21 23:02:50 UTC) #19
sky
https://codereview.chromium.org/2167613003/diff/60001/ui/snapshot/screenshot_grabber.cc File ui/snapshot/screenshot_grabber.cc (right): https://codereview.chromium.org/2167613003/diff/60001/ui/snapshot/screenshot_grabber.cc#newcode117 ui/snapshot/screenshot_grabber.cc:117: if (!window_->IsRootWindow()) This should be a DCHECK. https://codereview.chromium.org/2167613003/diff/60001/ui/snapshot/screenshot_grabber.cc#newcode119 ui/snapshot/screenshot_grabber.cc:119: ...
4 years, 5 months ago (2016-07-22 16:14:44 UTC) #24
Qiang(Joe) Xu
Hi, sky@ I updated based on the comments. Thanks! https://codereview.chromium.org/2167613003/diff/60001/ui/snapshot/screenshot_grabber.cc File ui/snapshot/screenshot_grabber.cc (right): https://codereview.chromium.org/2167613003/diff/60001/ui/snapshot/screenshot_grabber.cc#newcode117 ui/snapshot/screenshot_grabber.cc:117: ...
4 years, 5 months ago (2016-07-22 20:15:26 UTC) #29
sky
LGTM https://codereview.chromium.org/2167613003/diff/80001/ui/snapshot/screenshot_grabber.cc File ui/snapshot/screenshot_grabber.cc (right): https://codereview.chromium.org/2167613003/diff/80001/ui/snapshot/screenshot_grabber.cc#newcode115 ui/snapshot/screenshot_grabber.cc:115: static std::unique_ptr<ScopedCursorHider> Get(aura::Window* window) { nit: Get->Create, with ...
4 years, 5 months ago (2016-07-22 23:35:04 UTC) #30
Qiang(Joe) Xu
https://codereview.chromium.org/2167613003/diff/80001/ui/snapshot/screenshot_grabber.cc File ui/snapshot/screenshot_grabber.cc (right): https://codereview.chromium.org/2167613003/diff/80001/ui/snapshot/screenshot_grabber.cc#newcode115 ui/snapshot/screenshot_grabber.cc:115: static std::unique_ptr<ScopedCursorHider> Get(aura::Window* window) { On 2016/07/22 23:35:04, sky ...
4 years, 5 months ago (2016-07-22 23:48:09 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2167613003/100001
4 years, 5 months ago (2016-07-22 23:48:27 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-23 01:05:44 UTC) #36
commit-bot: I haz the power
4 years, 5 months ago (2016-07-23 01:08:41 UTC) #38
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/eb93d50aef7c4924b00d53c900208de7d604414c
Cr-Commit-Position: refs/heads/master@{#407325}

Powered by Google App Engine
This is Rietveld 408576698