Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: remoting/client/client_user_interface.h

Issue 10692179: Propagate connection state from networking layer to UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/plugin/chromoting_instance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 } // namespace protocol 16 } // namespace protocol
17 17
18 // ClientUserInterface is an interface that must be implemented by 18 // ClientUserInterface is an interface that must be implemented by
19 // applications embedding the Chromoting client, to provide client's user 19 // applications embedding the Chromoting client, to provide client's user
20 // interface. 20 // interface.
21 // 21 //
22 // TODO(sergeyu): Cleanup this interface, see crbug.com/138108 . 22 // TODO(sergeyu): Cleanup this interface, see crbug.com/138108 .
23 class ClientUserInterface { 23 class ClientUserInterface {
24 public: 24 public:
25 virtual ~ClientUserInterface() {} 25 virtual ~ClientUserInterface() {}
26 26
27 // Record the update the state of the connection, updating the UI as needed. 27 // Record the update the state of the connection, updating the UI as needed.
28 virtual void OnConnectionState(protocol::ConnectionToHost::State state, 28 virtual void OnConnectionState(protocol::ConnectionToHost::State state,
29 protocol::ErrorCode error) = 0; 29 protocol::ErrorCode error) = 0;
30 virtual void OnConnectionReady(bool ready) = 0;
30 31
31 // Get the view's ClipboardStub implementation. 32 // Get the view's ClipboardStub implementation.
32 virtual protocol::ClipboardStub* GetClipboardStub() = 0; 33 virtual protocol::ClipboardStub* GetClipboardStub() = 0;
33 34
34 // Get the view's CursorShapeStub implementation. 35 // Get the view's CursorShapeStub implementation.
35 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; 36 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0;
36 }; 37 };
37 38
38 } // namespace remoting 39 } // namespace remoting
39 40
40 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ 41 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/plugin/chromoting_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698