diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-20 01:37:36 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-20 01:37:36 +0000 |
commit | a971e180d64cf2575bfbc8f092c2674f735c3754 (patch) | |
tree | 6743ca1353c15ce05c95a03a27ec044a6c10d0ae /remoting/client/client_user_interface.h | |
parent | 76f6334342185167a22d829990103e7361c2f8d1 (diff) | |
download | chromium_src-a971e180d64cf2575bfbc8f092c2674f735c3754.zip chromium_src-a971e180d64cf2575bfbc8f092c2674f735c3754.tar.gz chromium_src-a971e180d64cf2575bfbc8f092c2674f735c3754.tar.bz2 |
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
Diffstat (limited to 'remoting/client/client_user_interface.h')
-rw-r--r-- | remoting/client/client_user_interface.h | 40 |
1 files changed, 40 insertions, 0 deletions
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_ |