OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |