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

Issue 6242012: touch: Hide the X cursor when not in use. (Closed)

Created:
9 years, 11 months ago by sadrul
Modified:
9 years, 6 months ago
Reviewers:
rjkroege, sky
CC:
chromium-reviews
Visibility:
Public.

Description

touch: Hide the X cursor when not in use. The default X cursor is hidden at startup, and when not in use for 5 seconds. It is immediately displayed if there is an event from a mouse device, and it's immediately hidden if there is an event from a touch device. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72702

Patch Set 1 #

Patch Set 2 : Simplify #

Total comments: 8

Patch Set 3 : Address comments. #

Patch Set 4 : Don't hide cursor when a mouse event is in progress. #

Total comments: 1

Patch Set 5 : Use unix_hacker_style #

Patch Set 6 : fix compile on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -19 lines) Patch
M views/focus/accelerator_handler_touch.cc View 1 2 3 2 chunks +48 lines, -18 lines 0 comments Download
M views/touchui/touch_factory.h View 1 2 3 4 2 chunks +30 lines, -0 lines 0 comments Download
M views/touchui/touch_factory.cc View 1 2 3 3 chunks +52 lines, -1 line 0 comments Download
M views/widget/root_view.cc View 1 2 3 4 5 3 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sadrul
9 years, 11 months ago (2011-01-25 23:22:20 UTC) #1
sadrul
Simplified things a little bit by using GDK_BLANK_CURSOR.
9 years, 11 months ago (2011-01-26 14:20:00 UTC) #2
sky
http://codereview.chromium.org/6242012/diff/3001/views/touchui/touch_factory.cc File views/touchui/touch_factory.cc (right): http://codereview.chromium.org/6242012/diff/3001/views/touchui/touch_factory.cc#newcode106 views/touchui/touch_factory.cc:106: cursor_timer_.Reset(); Would this trigger if the user presses the ...
9 years, 11 months ago (2011-01-26 16:17:00 UTC) #3
sadrul
http://codereview.chromium.org/6242012/diff/3001/views/touchui/touch_factory.cc File views/touchui/touch_factory.cc (right): http://codereview.chromium.org/6242012/diff/3001/views/touchui/touch_factory.cc#newcode106 views/touchui/touch_factory.cc:106: cursor_timer_.Reset(); On 2011/01/26 16:17:00, sky wrote: > Would this ...
9 years, 11 months ago (2011-01-26 17:57:11 UTC) #4
sky
On Wed, Jan 26, 2011 at 9:57 AM, <sadrul@chromium.org> wrote: > > http://codereview.chromium.org/6242012/diff/3001/views/touchui/touch_factory.cc > File ...
9 years, 11 months ago (2011-01-26 18:10:30 UTC) #5
sadrul
On 2011/01/26 18:10:30, sky wrote: > > Sounds reasonable. > Cool. I have made this ...
9 years, 11 months ago (2011-01-26 19:41:58 UTC) #6
sky
9 years, 11 months ago (2011-01-26 21:08:18 UTC) #7
LGTM

http://codereview.chromium.org/6242012/diff/12001/views/touchui/touch_factory.h
File views/touchui/touch_factory.h (right):

http://codereview.chromium.org/6242012/diff/12001/views/touchui/touch_factory...
views/touchui/touch_factory.h:49: bool IsCursorVisible() {
Name this is_cursor_visible() . Style guide says all cheap functions like this
are named unix_hacker_style.

Powered by Google App Engine
This is Rietveld 408576698