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 #ifndef REMOTING_CLIENT_X11_VIEW_H_ | 5 #ifndef REMOTING_CLIENT_X11_VIEW_H_ |
6 #define REMOTING_CLIENT_X11_VIEW_H_ | 6 #define REMOTING_CLIENT_X11_VIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual ~X11View(); | 25 virtual ~X11View(); |
26 | 26 |
27 // ChromotingView implementations. | 27 // ChromotingView implementations. |
28 virtual bool Initialize(); | 28 virtual bool Initialize(); |
29 virtual void TearDown(); | 29 virtual void TearDown(); |
30 virtual void Paint(); | 30 virtual void Paint(); |
31 virtual void SetSolidFill(uint32 color); | 31 virtual void SetSolidFill(uint32 color); |
32 virtual void UnsetSolidFill(); | 32 virtual void UnsetSolidFill(); |
33 virtual void SetViewport(int x, int y, int width, int height); | 33 virtual void SetViewport(int x, int y, int width, int height); |
34 virtual void SetHostScreenSize(int width, int height); | 34 virtual void SetHostScreenSize(int width, int height); |
35 virtual void HandleBeginUpdateStream(ChromotingHostMessage* msg); | 35 virtual void HandleBeginUpdateStream(HostMessage* msg); |
36 virtual void HandleUpdateStreamPacket(ChromotingHostMessage* msg); | 36 virtual void HandleUpdateStreamPacket(HostMessage* msg); |
37 virtual void HandleEndUpdateStream(ChromotingHostMessage* msg) ; | 37 virtual void HandleEndUpdateStream(HostMessage* msg) ; |
38 | 38 |
39 Display* display() { return display_; } | 39 Display* display() { return display_; } |
40 | 40 |
41 private: | 41 private: |
42 void InitPaintTarget(); | 42 void InitPaintTarget(); |
43 void OnPartialDecodeDone(); | 43 void OnPartialDecodeDone(); |
44 void OnDecodeDone(); | 44 void OnDecodeDone(); |
45 | 45 |
46 Display* display_; | 46 Display* display_; |
47 XID window_; | 47 XID window_; |
(...skipping 11 matching lines...) Expand all Loading... |
59 scoped_ptr<Decoder> decoder_; | 59 scoped_ptr<Decoder> decoder_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(X11View); | 61 DISALLOW_COPY_AND_ASSIGN(X11View); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace remoting | 64 } // namespace remoting |
65 | 65 |
66 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::X11View); | 66 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::X11View); |
67 | 67 |
68 #endif // REMOTING_CLIENT_X11_VIEW_H_ | 68 #endif // REMOTING_CLIENT_X11_VIEW_H_ |
OLD | NEW |