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

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

Issue 3124005: Move UpdateStreamEncoding value into the BeginUpdateStreamMessage since we... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/plugin/pepper_view.cc ('k') | remoting/client/x11_view.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 #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"
11 #include "remoting/base/decoder.h"
12 #include "remoting/client/chromoting_view.h" 11 #include "remoting/client/chromoting_view.h"
13 12
14 typedef unsigned long XID; 13 typedef unsigned long XID;
15 typedef struct _XDisplay Display; 14 typedef struct _XDisplay Display;
16 15
17 namespace remoting { 16 namespace remoting {
18 17
19 // A ChromotingView implemented using X11 and XRender. 18 // A ChromotingView implemented using X11 and XRender.
20 class X11View : public ChromotingView { 19 class X11View : public ChromotingView {
21 public: 20 public:
22 X11View(); // Delete this. 21 X11View();
23 X11View(Display* display, XID window, int width, int height);
24
25 virtual ~X11View(); 22 virtual ~X11View();
26 23
27 // ChromotingView implementations. 24 // ChromotingView implementations.
28 virtual bool Initialize(); 25 virtual bool Initialize();
29 virtual void TearDown(); 26 virtual void TearDown();
30 virtual void Paint(); 27 virtual void Paint();
31 virtual void SetSolidFill(uint32 color); 28 virtual void SetSolidFill(uint32 color);
32 virtual void UnsetSolidFill(); 29 virtual void UnsetSolidFill();
33 virtual void SetViewport(int x, int y, int width, int height); 30 virtual void SetViewport(int x, int y, int width, int height);
34 virtual void SetHostScreenSize(int width, int height); 31 virtual void SetHostScreenSize(int width, int height);
35 virtual void HandleBeginUpdateStream(HostMessage* msg); 32 virtual void HandleBeginUpdateStream(HostMessage* msg);
36 virtual void HandleUpdateStreamPacket(HostMessage* msg); 33 virtual void HandleUpdateStreamPacket(HostMessage* msg);
37 virtual void HandleEndUpdateStream(HostMessage* msg) ; 34 virtual void HandleEndUpdateStream(HostMessage* msg);
38 35
39 Display* display() { return display_; } 36 Display* display() { return display_; }
40 37
41 private: 38 private:
42 void InitPaintTarget(); 39 void InitPaintTarget();
43 void OnPartialDecodeDone(); 40 void OnPartialDecodeDone();
44 void OnDecodeDone(); 41 void OnDecodeDone();
45 42
46 Display* display_; 43 Display* display_;
47 XID window_; 44 XID window_;
48 int width_;
49 int height_;
50 45
51 // A picture created in the X server that represents drawing area of the 46 // A picture created in the X server that represents drawing area of the
52 // window. 47 // window.
53 XID picture_; 48 XID picture_;
54 49
55 scoped_refptr<media::VideoFrame> frame_;
56 UpdatedRects update_rects_;
57 UpdatedRects all_update_rects_;
58
59 scoped_ptr<Decoder> decoder_;
60
61 DISALLOW_COPY_AND_ASSIGN(X11View); 50 DISALLOW_COPY_AND_ASSIGN(X11View);
62 }; 51 };
63 52
64 } // namespace remoting 53 } // namespace remoting
65 54
66 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::X11View); 55 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::X11View);
67 56
68 #endif // REMOTING_CLIENT_X11_VIEW_H_ 57 #endif // REMOTING_CLIENT_X11_VIEW_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_view.cc ('k') | remoting/client/x11_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698