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

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

Issue 3038001: Reapply r51857 to start building chromoting plugin. Update for ppapi changes. (Closed)
Patch Set: rebased correctly. Created 10 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
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // ChromotingClient is the controller for the Client implementation. 5 // ChromotingClient is the controller for the Client implementation.
6 6
7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H 7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H
8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H 8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H
9 9
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 10 matching lines...) Expand all
21 ChromotingClient(MessageLoop* message_loop, 21 ChromotingClient(MessageLoop* message_loop,
22 HostConnection* connection, 22 HostConnection* connection,
23 ChromotingView* view); 23 ChromotingView* view);
24 virtual ~ChromotingClient(); 24 virtual ~ChromotingClient();
25 25
26 // Signals that the associated view may need updating. 26 // Signals that the associated view may need updating.
27 virtual void Repaint(); 27 virtual void Repaint();
28 28
29 // Sets the viewport to do display. The viewport may be larger and/or 29 // Sets the viewport to do display. The viewport may be larger and/or
30 // smaller than the actual image background being displayed. 30 // smaller than the actual image background being displayed.
31 //
32 // TODO(ajwong): This doesn't make sense to have here. We're going to have
33 // threading isseus since pepper view needs to be called from the main pepper
34 // thread synchronously really.
31 virtual void SetViewport(int x, int y, int width, int height); 35 virtual void SetViewport(int x, int y, int width, int height);
32 36
33 // HostConnection::HostEventCallback implementation. 37 // HostConnection::HostEventCallback implementation.
34 virtual void HandleMessages(HostConnection* conn, HostMessageList* messages); 38 virtual void HandleMessages(HostConnection* conn, HostMessageList* messages);
35 virtual void OnConnectionOpened(HostConnection* conn); 39 virtual void OnConnectionOpened(HostConnection* conn);
36 virtual void OnConnectionClosed(HostConnection* conn); 40 virtual void OnConnectionClosed(HostConnection* conn);
37 virtual void OnConnectionFailed(HostConnection* conn); 41 virtual void OnConnectionFailed(HostConnection* conn);
38 42
39 private: 43 private:
40 enum State { 44 enum State {
(...skipping 28 matching lines...) Expand all
69 ChromotingView* view_; 73 ChromotingView* view_;
70 74
71 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); 75 DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
72 }; 76 };
73 77
74 } // namespace remoting 78 } // namespace remoting
75 79
76 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); 80 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient);
77 81
78 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H 82 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H
OLDNEW
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698