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

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
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 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 OnConnectionInactive(bool inactive) = 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698