| 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 #ifndef REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ | 5 #ifndef REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ |
| 6 #define REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ | 6 #define REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "remoting/protocol/connection_to_host.h" | 11 #include "remoting/protocol/connection_to_host.h" |
| 12 #include "remoting/protocol/third_party_client_authenticator.h" | 12 #include "remoting/protocol/third_party_client_authenticator.h" |
| 13 | 13 |
| 14 namespace webrtc { |
| 15 class DesktopSize; |
| 16 class DesktopVector; |
| 17 } // namespace webrtc |
| 18 |
| 14 namespace remoting { | 19 namespace remoting { |
| 15 | 20 |
| 16 namespace protocol { | 21 namespace protocol { |
| 17 class ClipboardStub; | 22 class ClipboardStub; |
| 18 class CursorShapeStub; | 23 class CursorShapeStub; |
| 19 class ExtensionMessage; | 24 class ExtensionMessage; |
| 20 class PairingResponse; | 25 class PairingResponse; |
| 21 } // namespace protocol | 26 } // namespace protocol |
| 22 | 27 |
| 23 // ClientUserInterface is an interface that must be implemented by | 28 // ClientUserInterface is an interface that must be implemented by |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 virtual void SetCapabilities(const std::string& capabilities) = 0; | 46 virtual void SetCapabilities(const std::string& capabilities) = 0; |
| 42 | 47 |
| 43 // Passes a pairing response message to the client. | 48 // Passes a pairing response message to the client. |
| 44 virtual void SetPairingResponse( | 49 virtual void SetPairingResponse( |
| 45 const protocol::PairingResponse& pairing_response) = 0; | 50 const protocol::PairingResponse& pairing_response) = 0; |
| 46 | 51 |
| 47 // Deliver an extension message from the host to the client. | 52 // Deliver an extension message from the host to the client. |
| 48 virtual void DeliverHostMessage( | 53 virtual void DeliverHostMessage( |
| 49 const protocol::ExtensionMessage& message) = 0; | 54 const protocol::ExtensionMessage& message) = 0; |
| 50 | 55 |
| 56 // Notify the client about screen dimensions. The |size| is in physical |
| 57 // pixels. |
| 58 virtual void SetDesktopSize(const webrtc::DesktopSize& size, |
| 59 const webrtc::DesktopVector& dpi) = 0; |
| 60 |
| 51 // Get the view's ClipboardStub implementation. | 61 // Get the view's ClipboardStub implementation. |
| 52 virtual protocol::ClipboardStub* GetClipboardStub() = 0; | 62 virtual protocol::ClipboardStub* GetClipboardStub() = 0; |
| 53 | 63 |
| 54 // Get the view's CursorShapeStub implementation. | 64 // Get the view's CursorShapeStub implementation. |
| 55 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; | 65 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; |
| 56 }; | 66 }; |
| 57 | 67 |
| 58 } // namespace remoting | 68 } // namespace remoting |
| 59 | 69 |
| 60 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ | 70 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ |
| OLD | NEW |