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 #include "remoting/client/x11_view.h" | 5 #include "remoting/client/x11_view.h" |
6 | 6 |
7 #include <X11/Xlib.h> | 7 #include <X11/Xlib.h> |
8 #include <X11/Xutil.h> | 8 #include <X11/Xutil.h> |
9 #include <X11/extensions/Xrender.h> | 9 #include <X11/extensions/Xrender.h> |
10 #include <X11/extensions/Xcomposite.h> | 10 #include <X11/extensions/Xcomposite.h> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "remoting/client/decoder_verbatim.h" | 13 #include "remoting/base/decoder_verbatim.h" |
14 | 14 |
15 namespace remoting { | 15 namespace remoting { |
16 | 16 |
17 X11View::X11View() | 17 X11View::X11View() |
18 : display_(NULL), | 18 : display_(NULL), |
19 window_(0), | 19 window_(0), |
20 width_(0), | 20 width_(0), |
21 height_(0), | 21 height_(0), |
22 picture_(0) { | 22 picture_(0) { |
23 } | 23 } |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 XEvent event; | 211 XEvent event; |
212 event.type = Expose; | 212 event.type = Expose; |
213 XSendEvent(display_, static_cast<int>(window_), true, ExposureMask, &event); | 213 XSendEvent(display_, static_cast<int>(window_), true, ExposureMask, &event); |
214 } | 214 } |
215 | 215 |
216 void X11View::OnDecodeDone() { | 216 void X11View::OnDecodeDone() { |
217 // Since we do synchronous decoding here there's nothing in this method. | 217 // Since we do synchronous decoding here there's nothing in this method. |
218 } | 218 } |
219 | 219 |
220 } // namespace remoting | 220 } // namespace remoting |
OLD | NEW |