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 ClipboardStub; | 14 class ClipboardStub; |
15 class CursorShapeStub; | 15 class CursorShapeStub; |
| 16 class PinFetcherFactory; |
16 } // namespace protocol | 17 } // namespace protocol |
17 | 18 |
18 // ClientUserInterface is an interface that must be implemented by | 19 // ClientUserInterface is an interface that must be implemented by |
19 // applications embedding the Chromoting client, to provide client's user | 20 // applications embedding the Chromoting client, to provide client's user |
20 // interface. | 21 // interface. |
21 // | 22 // |
22 // TODO(sergeyu): Cleanup this interface, see crbug.com/138108 . | 23 // TODO(sergeyu): Cleanup this interface, see crbug.com/138108 . |
23 class ClientUserInterface { | 24 class ClientUserInterface { |
24 public: | 25 public: |
25 virtual ~ClientUserInterface() {} | 26 virtual ~ClientUserInterface() {} |
26 | 27 |
27 // Record the update the state of the connection, updating the UI as needed. | 28 // Record the update the state of the connection, updating the UI as needed. |
28 virtual void OnConnectionState(protocol::ConnectionToHost::State state, | 29 virtual void OnConnectionState(protocol::ConnectionToHost::State state, |
29 protocol::ErrorCode error) = 0; | 30 protocol::ErrorCode error) = 0; |
30 virtual void OnConnectionReady(bool ready) = 0; | 31 virtual void OnConnectionReady(bool ready) = 0; |
31 | 32 |
32 // Get the view's ClipboardStub implementation. | 33 // Get the view's ClipboardStub implementation. |
33 virtual protocol::ClipboardStub* GetClipboardStub() = 0; | 34 virtual protocol::ClipboardStub* GetClipboardStub() = 0; |
34 | 35 |
35 // Get the view's CursorShapeStub implementation. | 36 // Get the view's CursorShapeStub implementation. |
36 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; | 37 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; |
| 38 |
| 39 // Get the view's PinFetcherFactory implementation. |
| 40 virtual protocol::PinFetcherFactory* GetPinFetcherFactory() = 0; |
37 }; | 41 }; |
38 | 42 |
39 } // namespace remoting | 43 } // namespace remoting |
40 | 44 |
41 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ | 45 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ |
OLD | NEW |