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

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

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused vars. Fix Mac Capturer Unittest. Created 8 years, 6 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_CHROMOTING_VIEW_H_ 5 #ifndef REMOTING_CLIENT_CHROMOTING_VIEW_H_
6 #define REMOTING_CLIENT_CHROMOTING_VIEW_H_ 6 #define REMOTING_CLIENT_CHROMOTING_VIEW_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 } // namespace protocol 16 } // namespace protocol
16 17
17 // ChromotingView defines the behavior of an object that draws a view of the 18 // ChromotingView defines the behavior of an object that draws a view of the
18 // remote desktop. Its main function is to render the update stream onto the 19 // remote desktop. Its main function is to render the update stream onto the
19 // screen. 20 // screen.
20 class ChromotingView { 21 class ChromotingView {
21 public: 22 public:
22 virtual ~ChromotingView() {} 23 virtual ~ChromotingView() {}
23 24
24 // Initialize the common structures for the view. 25 // Initialize the common structures for the view.
25 virtual bool Initialize() = 0; 26 virtual bool Initialize() = 0;
26 27
27 // Free up resources allocated by this view. 28 // Free up resources allocated by this view.
28 virtual void TearDown() = 0; 29 virtual void TearDown() = 0;
29 30
30 // Record the update the state of the connection, updating the UI as needed. 31 // Record the update the state of the connection, updating the UI as needed.
31 virtual void SetConnectionState(protocol::ConnectionToHost::State state, 32 virtual void SetConnectionState(protocol::ConnectionToHost::State state,
32 protocol::ErrorCode error) = 0; 33 protocol::ErrorCode error) = 0;
33 34
34 // Get the view's ClipboardStub implementation. 35 // Get the view's ClipboardStub implementation.
35 virtual protocol::ClipboardStub* GetClipboardStub() = 0; 36 virtual protocol::ClipboardStub* GetClipboardStub() = 0;
37
38 // Get the view's CursorShapeStub implementation.
39 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0;
36 }; 40 };
37 41
38 } // namespace remoting 42 } // namespace remoting
39 43
40 #endif // REMOTING_CLIENT_CHROMOTING_VIEW_H_ 44 #endif // REMOTING_CLIENT_CHROMOTING_VIEW_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