diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-02 22:16:41 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-02 22:16:41 +0000 |
commit | d65e15bdcd7ffe01ec2054177a7e78fa69683a38 (patch) | |
tree | fb05d40a5b8bf2dfd943999b19fcb304e088d08e /remoting/proto | |
parent | 051e71e1b702970eb39302abbe29836239036a3d (diff) | |
download | chromium_src-d65e15bdcd7ffe01ec2054177a7e78fa69683a38.zip chromium_src-d65e15bdcd7ffe01ec2054177a7e78fa69683a38.tar.gz chromium_src-d65e15bdcd7ffe01ec2054177a7e78fa69683a38.tar.bz2 |
[Chromoting] Initial plumbing for cursor shape.
This cl contains:
* protocol for sending cursor shape on control channel from host to client
* cross-platform (Pepper) client code for rendering host cursor
* Linux host support for reading current cursor shape
Separate CLs will follow with Mac and Windows host support.
BUG=116229
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10382184
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/proto')
-rw-r--r-- | remoting/proto/control.proto | 13 | ||||
-rw-r--r-- | remoting/proto/internal.proto | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/remoting/proto/control.proto b/remoting/proto/control.proto index 6c00389..ebe0358 100644 --- a/remoting/proto/control.proto +++ b/remoting/proto/control.proto @@ -20,3 +20,16 @@ message VideoControl { // Enables the video channel if true, pauses if false. optional bool enable = 1; } + +message CursorShapeInfo { + // Width, height (in screen pixels) of the cursor. + optional int32 width = 1; + optional int32 height = 2; + + // X,Y coordinates (relative to upper-left corner) of the cursor hotspot. + optional int32 hotspot_x = 3; + optional int32 hotspot_y = 4; + + // Cursor pixmap data in 32-bit BGRA format. + optional bytes data = 5; +} diff --git a/remoting/proto/internal.proto b/remoting/proto/internal.proto index 06f9585..4e68d7d 100644 --- a/remoting/proto/internal.proto +++ b/remoting/proto/internal.proto @@ -18,6 +18,7 @@ package remoting.protocol; message ControlMessage { optional ClipboardEvent clipboard_event = 1; optional ClientDimensions client_dimensions = 2; + optional CursorShapeInfo cursor_shape = 4; optional VideoControl video_control = 3; } |