diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-13 05:50:24 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-13 05:50:24 +0000 |
commit | 4825b4e970418cf38569dc12f082358dc00f28df (patch) | |
tree | 1f32f160130549858911ca4e57d0f214a5ed5e30 /remoting/proto/event.proto | |
parent | e259eb41b32c8361b648b81b92a1b636878a6ca7 (diff) | |
download | chromium_src-4825b4e970418cf38569dc12f082358dc00f28df.zip chromium_src-4825b4e970418cf38569dc12f082358dc00f28df.tar.gz chromium_src-4825b4e970418cf38569dc12f082358dc00f28df.tar.bz2 |
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
Diffstat (limited to 'remoting/proto/event.proto')
-rw-r--r-- | remoting/proto/event.proto | 10 |
1 files changed, 8 insertions, 2 deletions
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. |