 Chromium Code Reviews
 Chromium Code Reviews Issue 9646013:
  Add the plumbing that will carry a clipboard item from a chromoting client to a host.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 9646013:
  Add the plumbing that will carry a clipboard item from a chromoting client to a host.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| OLD | NEW | 
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 // Protocol for event messages. | 5 // Protocol for event messages. | 
| 6 | 6 | 
| 7 syntax = "proto2"; | 7 syntax = "proto2"; | 
| 8 | 8 | 
| 9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; | 
| 10 | 10 | 
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 // These values encode the number of wheel 'ticks' (sometimes called | 41 // These values encode the number of wheel 'ticks' (sometimes called | 
| 42 // 'clicks' although 'ticks' is the most common cross-platform term). | 42 // 'clicks' although 'ticks' is the most common cross-platform term). | 
| 43 // Additional fields may be added later to support high-resolution devices. | 43 // Additional fields may be added later to support high-resolution devices. | 
| 44 optional int32 wheel_offset_x = 3; | 44 optional int32 wheel_offset_x = 3; | 
| 45 optional int32 wheel_offset_y = 4; | 45 optional int32 wheel_offset_y = 4; | 
| 46 | 46 | 
| 47 // Mouse button event. | 47 // Mouse button event. | 
| 48 optional MouseButton button = 5; | 48 optional MouseButton button = 5; | 
| 49 optional bool button_down = 6; | 49 optional bool button_down = 6; | 
| 50 } | 50 } | 
| 51 | |
| 52 // Defines an event that sends data from one peer's clipboard into the other | |
| 
Wez
2012/03/09 00:34:00
nit: ... sends clipboard data between peers. ?
 
simonmorris
2012/03/09 00:44:47
Done.
 | |
| 53 // peer's clipboard. | |
| 54 message ClipboardEvent { | |
| 
Wez
2012/03/09 00:44:07
We probably want clipboard data on its own channel
 | |
| 55 | |
| 56 // The type of the data being sent. | |
| 57 enum DataType { | |
| 58 DATA_TYPE_TEXT_UTF8 = 0; | |
| 
Wez
2012/03/09 00:34:00
If we're going to go down the route of coding spec
 
simonmorris
2012/03/09 00:44:47
If there are useful type-specific fields for some
 
Wez
2012/03/09 01:12:41
Text, images and files would likely need different
 | |
| 59 } | |
| 60 required DataType dataType = 1; | |
| 61 | |
| 62 // The data being sent. | |
| 63 required bytes data = 2; | |
| 64 } | |
| OLD | NEW |