| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "remoting/protocol/connection_to_host.h" | 9 #include "remoting/protocol/connection_to_host.h" |
| 10 | 10 |
| 11 namespace remoting { | 11 namespace remoting { |
| 12 | 12 |
| 13 namespace protocol { | 13 namespace protocol { |
| 14 class ClipboardEvent; | 14 class ClipboardEvent; |
| 15 class CursorShapeInfo; | 15 class CursorShapeInfo; |
| 16 } // namespace protocol | 16 } // namespace protocol |
| 17 | 17 |
| 18 // ClientUserInterface is an interface that must be implemented by the | 18 // ClientUserInterface is an interface that must be implemented by the |
| 19 // object responsible for chromoting client user interface. | 19 // object responsible for chromoting client user interface. |
| 20 class ClientUserInterface { | 20 class ClientUserInterface { |
| 21 public: | 21 public: |
| 22 virtual ~ClientUserInterface() {} | 22 virtual ~ClientUserInterface() {} |
| 23 | 23 |
| 24 // Record the update the state of the connection, updating the UI as needed. | 24 // Record the update the state of the connection, updating the UI as needed. |
| 25 virtual void OnConnectionState(protocol::ConnectionToHost::State state, | 25 virtual void OnConnectionState(protocol::ConnectionToHost::State state, |
| 26 protocol::ErrorCode error) = 0; | 26 protocol::ErrorCode error) = 0; |
| 27 virtual void OnConnectionReady(bool ready) = 0; |
| 27 virtual void ProcessClipboardEvent( | 28 virtual void ProcessClipboardEvent( |
| 28 const protocol::ClipboardEvent& event) = 0; | 29 const protocol::ClipboardEvent& event) = 0; |
| 29 virtual void SetCursorShape( | 30 virtual void SetCursorShape( |
| 30 const protocol::CursorShapeInfo& cursor_shape) = 0; | 31 const protocol::CursorShapeInfo& cursor_shape) = 0; |
| 31 }; | 32 }; |
| 32 | 33 |
| 33 } // namespace remoting | 34 } // namespace remoting |
| 34 | 35 |
| 35 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ | 36 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ |
| OLD | NEW |