diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-27 20:25:39 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-27 20:25:39 +0000 |
commit | 529bbd15cb37ed16f96efb0de94b8ccf73cd1787 (patch) | |
tree | 6b488f4cd318eaf553b90df389f3f325640cf7c8 /remoting/proto | |
parent | 6e9def1ccf30f6747abc1597e8db10236fcb5e8a (diff) | |
download | chromium_src-529bbd15cb37ed16f96efb0de94b8ccf73cd1787.zip chromium_src-529bbd15cb37ed16f96efb0de94b8ccf73cd1787.tar.gz chromium_src-529bbd15cb37ed16f96efb0de94b8ccf73cd1787.tar.bz2 |
Add TextEvent message in the protocol
The new message will be used for non-keyboard input methods
and software keyboards.
BUG=270356
R=lambroslambrou@chromium.org, nasko@chromium.org
Review URL: https://codereview.chromium.org/197613004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259968 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/proto')
-rw-r--r-- | remoting/proto/event.proto | 12 | ||||
-rw-r--r-- | remoting/proto/internal.proto | 1 |
2 files changed, 10 insertions, 3 deletions
diff --git a/remoting/proto/event.proto b/remoting/proto/event.proto index 5c774b5..dd15094 100644 --- a/remoting/proto/event.proto +++ b/remoting/proto/event.proto @@ -19,8 +19,7 @@ message KeyEvent { LOCK_STATES_NUMLOCK = 2; } - // The Windows Virtual Key code. - //optional int32 keycode = 1; + // True for key press events, and false for key release. optional bool pressed = 2; // The USB key code. @@ -32,7 +31,14 @@ message KeyEvent { optional uint32 lock_states = 4 [default = 0]; } -// Defines a mouse event message on the event channel. +// Text input event for input method different from physical keyboards, +// including software keyboard, gesture typing, voice input, etc. +message TextEvent { + // Unicode sequence for the event in UTF-8. + optional string text = 1; +} + +// Defines a mouse event message on the event channel. message MouseEvent { enum MouseButton { diff --git a/remoting/proto/internal.proto b/remoting/proto/internal.proto index 6ae35f4..89c39e7 100644 --- a/remoting/proto/internal.proto +++ b/remoting/proto/internal.proto @@ -33,4 +33,5 @@ message EventMessage { optional KeyEvent key_event = 3; optional MouseEvent mouse_event = 4; + optional TextEvent text_event = 5; } |