From 4825b4e970418cf38569dc12f082358dc00f28df Mon Sep 17 00:00:00 2001 From: "wez@chromium.org" Date: Sat, 13 Oct 2012 05:50:24 +0000 Subject: Add sub-pixel accuracy deltas in mouse wheel events. Pixel-based deltas are more consistent across platforms and reflect the client-side acceleration settings. Sub-pixel accuracy may be required in future to support high-DPI devices. BUG=155668,145875 TEST=Manually verify that mouse-wheel events are still sent correctly to hosts. Review URL: https://chromiumcodereview.appspot.com/11151004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161730 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/proto/event.proto | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'remoting/proto/event.proto') diff --git a/remoting/proto/event.proto b/remoting/proto/event.proto index 5dceab0..f06618e 100644 --- a/remoting/proto/event.proto +++ b/remoting/proto/event.proto @@ -37,16 +37,22 @@ message MouseEvent { optional int32 x = 1; optional int32 y = 2; - // Mouse wheel information. + // Legacy mouse wheel information. // These values encode the number of wheel 'ticks' (sometimes called // 'clicks' although 'ticks' is the most common cross-platform term). - // Additional fields may be added later to support high-resolution devices. + // TODO(wez): Remove these when hosts no longer need them (crbug.com/155668). optional int32 wheel_offset_x = 3; optional int32 wheel_offset_y = 4; // Mouse button event. optional MouseButton button = 5; optional bool button_down = 6; + + // Mouse wheel information. + // These values encode the number of pixels of movement that would result + // from the wheel event on the client system. + optional float wheel_delta_x = 7; + optional float wheel_delta_y = 8; } // Defines an event that sends clipboard data between peers. -- cgit v1.1