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

Issue 833693002: Hide the cursor on the client when it is hidden on the host (Closed)

Created:
5 years, 11 months ago by kelvinp
Modified:
5 years, 11 months ago
Reviewers:
Sergey Ulanov, Jamie, Wez
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hide the cursor on the client when it is hidden on the host This CL 1. Relaxes the CursorShapeIsValid() check on ClientControlDispatcher to allow cursors with empty dimensions. 2. Modifies MouseCursorMonitorAura to sends an empty cursor when the cursor is ui::kCursorNone or when the cursor bitmap cannot be loaded. 3. Initializes the CursorShapeInfo with empty data on the VideoScheduler as it is a required field. Committed: https://crrev.com/efa63e0e545f7984e63bda0fb94a5f02449eca20 Cr-Commit-Position: refs/heads/master@{#310175}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Hides the cursor properly on the client #

Total comments: 8

Patch Set 3 : Address Sergey's feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -5 lines) Patch
M remoting/host/chromeos/mouse_cursor_monitor_aura.cc View 1 2 3 chunks +20 lines, -2 lines 0 comments Download
M remoting/host/video_scheduler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/client_control_dispatcher.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
kelvinp
PTAL
5 years, 11 months ago (2014-12-30 21:34:32 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/833693002/diff/1/remoting/host/chromeos/mouse_cursor_monitor_aura.cc File remoting/host/chromeos/mouse_cursor_monitor_aura.cc (right): https://codereview.chromium.org/833693002/diff/1/remoting/host/chromeos/mouse_cursor_monitor_aura.cc#newcode58 remoting/host/chromeos/mouse_cursor_monitor_aura.cc:58: return; Should we notify the client that the cursor ...
5 years, 11 months ago (2015-01-05 18:00:26 UTC) #6
Wez
https://codereview.chromium.org/833693002/diff/1/remoting/host/chromeos/mouse_cursor_monitor_aura.cc File remoting/host/chromeos/mouse_cursor_monitor_aura.cc (right): https://codereview.chromium.org/833693002/diff/1/remoting/host/chromeos/mouse_cursor_monitor_aura.cc#newcode58 remoting/host/chromeos/mouse_cursor_monitor_aura.cc:58: return; On 2015/01/05 18:00:25, Sergey Ulanov wrote: > Should ...
5 years, 11 months ago (2015-01-05 20:02:46 UTC) #8
kelvinp
PTAL https://codereview.chromium.org/833693002/diff/1/remoting/host/chromeos/mouse_cursor_monitor_aura.cc File remoting/host/chromeos/mouse_cursor_monitor_aura.cc (right): https://codereview.chromium.org/833693002/diff/1/remoting/host/chromeos/mouse_cursor_monitor_aura.cc#newcode58 remoting/host/chromeos/mouse_cursor_monitor_aura.cc:58: return; On 2015/01/05 20:02:46, Wez wrote: > On ...
5 years, 11 months ago (2015-01-06 02:22:18 UTC) #9
Sergey Ulanov
lgtm when my comments are addressed. https://codereview.chromium.org/833693002/diff/20001/remoting/host/chromeos/mouse_cursor_monitor_aura.cc File remoting/host/chromeos/mouse_cursor_monitor_aura.cc (right): https://codereview.chromium.org/833693002/diff/20001/remoting/host/chromeos/mouse_cursor_monitor_aura.cc#newcode54 remoting/host/chromeos/mouse_cursor_monitor_aura.cc:54: namespace { nit: ...
5 years, 11 months ago (2015-01-06 18:52:10 UTC) #10
kelvinp
FYI https://codereview.chromium.org/833693002/diff/20001/remoting/host/chromeos/mouse_cursor_monitor_aura.cc File remoting/host/chromeos/mouse_cursor_monitor_aura.cc (right): https://codereview.chromium.org/833693002/diff/20001/remoting/host/chromeos/mouse_cursor_monitor_aura.cc#newcode54 remoting/host/chromeos/mouse_cursor_monitor_aura.cc:54: namespace { On 2015/01/06 18:52:10, Sergey Ulanov wrote: ...
5 years, 11 months ago (2015-01-06 22:04:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/833693002/40001
5 years, 11 months ago (2015-01-06 22:04:48 UTC) #13
Wez
https://codereview.chromium.org/833693002/diff/20001/remoting/host/chromeos/mouse_cursor_monitor_aura.cc File remoting/host/chromeos/mouse_cursor_monitor_aura.cc (right): https://codereview.chromium.org/833693002/diff/20001/remoting/host/chromeos/mouse_cursor_monitor_aura.cc#newcode56 remoting/host/chromeos/mouse_cursor_monitor_aura.cc:56: webrtc::MouseCursor* CreateEmptyMouseCursor() { Not for this CL: Let's add ...
5 years, 11 months ago (2015-01-06 23:24:26 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-06 23:50:38 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/efa63e0e545f7984e63bda0fb94a5f02449eca20 Cr-Commit-Position: refs/heads/master@{#310175}
5 years, 11 months ago (2015-01-06 23:51:23 UTC) #16
kelvinp
> Are we already hitting this when other hosts see empty cursors? Yes, currently the ...
5 years, 11 months ago (2015-01-07 00:07:33 UTC) #17
Wez
5 years, 11 months ago (2015-01-07 20:47:38 UTC) #18
Message was sent while issue was closed.
On 2015/01/07 00:07:33, kelvinp wrote:
> > Are we already hitting this when other hosts see empty cursors?
> Yes, currently the mac and linux hosts doesn't hide the cursor properly.

Can you clarify what you mean by that?

> I haven't checked Windows host yet.
> I think this change will fix the problem for all hosts.

Yes, but hosts and clients are distributed on different schedules, so since this
CL has to modify the client to make it compatible with the host changes, that
suggests we need to do something different to avoid creating issues with older
client plugins.

Powered by Google App Engine
This is Rietveld 408576698