| 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 // Interface of a host that receives commands from a Chromoting client. | 5 // Interface of a host that receives commands from a Chromoting client. |
| 6 // | 6 // |
| 7 // This interface handles control messages defined in control.proto. | 7 // This interface handles control messages defined in control.proto. |
| 8 | 8 |
| 9 #ifndef REMOTING_PROTOCOL_HOST_STUB_H_ | 9 #ifndef REMOTING_PROTOCOL_HOST_STUB_H_ |
| 10 #define REMOTING_PROTOCOL_HOST_STUB_H_ | 10 #define REMOTING_PROTOCOL_HOST_STUB_H_ |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 namespace protocol { | 15 namespace protocol { |
| 16 | 16 |
| 17 class ClientDimensions; | 17 class ClientResolution; |
| 18 class VideoControl; | 18 class VideoControl; |
| 19 class AudioControl; | 19 class AudioControl; |
| 20 | 20 |
| 21 class HostStub { | 21 class HostStub { |
| 22 public: | 22 public: |
| 23 HostStub() {} | 23 HostStub() {} |
| 24 | 24 |
| 25 // Notification of the available client display dimensions. | 25 // Notification of the client dimensions and pixel density. |
| 26 // This may be used to resize the host display to match the client area. | 26 // This may be used to resize the host display to match the client area. |
| 27 virtual void NotifyClientDimensions(const ClientDimensions& dimensions) = 0; | 27 virtual void NotifyClientResolution(const ClientResolution& resolution) = 0; |
| 28 | 28 |
| 29 // Configures video update properties. Currently only pausing & resuming the | 29 // Configures video update properties. Currently only pausing & resuming the |
| 30 // video channel is supported. | 30 // video channel is supported. |
| 31 virtual void ControlVideo(const VideoControl& video_control) = 0; | 31 virtual void ControlVideo(const VideoControl& video_control) = 0; |
| 32 | 32 |
| 33 // Configures audio properties. Currently only pausing & resuming the audio | 33 // Configures audio properties. Currently only pausing & resuming the audio |
| 34 // channel is supported. | 34 // channel is supported. |
| 35 virtual void ControlAudio(const AudioControl& audio_control) = 0; | 35 virtual void ControlAudio(const AudioControl& audio_control) = 0; |
| 36 | 36 |
| 37 protected: | 37 protected: |
| 38 virtual ~HostStub() {} | 38 virtual ~HostStub() {} |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(HostStub); | 41 DISALLOW_COPY_AND_ASSIGN(HostStub); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace protocol | 44 } // namespace protocol |
| 45 } // namespace remoting | 45 } // namespace remoting |
| 46 | 46 |
| 47 #endif // REMOTING_PROTOCOL_HOST_STUB_H_ | 47 #endif // REMOTING_PROTOCOL_HOST_STUB_H_ |
| OLD | NEW |