From a971e180d64cf2575bfbc8f092c2674f735c3754 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Fri, 20 Jul 2012 01:37:36 +0000 Subject: Rename ChromotingView to ClientUserInterface. Clean it up. ChromotingView wasn't really doing what it was initially meant to do, now FrameProducer and FrameConsumer interfaces are used to process video stream. Renamed and simplified that interface. Also moved implementation from PepperView to ChromotingInstance. Review URL: https://chromiumcodereview.appspot.com/10703144 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147595 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/client/client_user_interface.h | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 remoting/client/client_user_interface.h (limited to 'remoting/client/client_user_interface.h') diff --git a/remoting/client/client_user_interface.h b/remoting/client/client_user_interface.h new file mode 100644 index 0000000..e6498fb --- /dev/null +++ b/remoting/client/client_user_interface.h @@ -0,0 +1,40 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ +#define REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ + +#include "base/basictypes.h" +#include "remoting/protocol/connection_to_host.h" + +namespace remoting { + +namespace protocol { +class ClipboardStub; +class CursorShapeStub; +} // namespace protocol + +// ClientUserInterface is an interface that must be implemented by +// applications embedding the Chromoting client, to provide client's user +// interface. +// +// TODO(sergeyu): Cleanup this interface, see crbug.com/138108 . +class ClientUserInterface { + public: + virtual ~ClientUserInterface() {} + + // Record the update the state of the connection, updating the UI as needed. + virtual void OnConnectionState(protocol::ConnectionToHost::State state, + protocol::ErrorCode error) = 0; + + // Get the view's ClipboardStub implementation. + virtual protocol::ClipboardStub* GetClipboardStub() = 0; + + // Get the view's CursorShapeStub implementation. + virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; +}; + +} // namespace remoting + +#endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ -- cgit v1.1