| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMOTING_VIEW_H_ | 5 #ifndef REMOTING_CLIENT_CHROMOTING_VIEW_H_ |
| 6 #define REMOTING_CLIENT_CHROMOTING_VIEW_H_ | 6 #define REMOTING_CLIENT_CHROMOTING_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "media/base/video_frame.h" | 11 #include "media/base/video_frame.h" |
| 12 #include "remoting/protocol/connection_to_host.h" | 12 #include "remoting/protocol/connection_to_host.h" |
| 13 | 13 |
| 14 class MessageLoop; | |
| 15 | |
| 16 namespace base { | |
| 17 class WaitableEvent; | |
| 18 } // namespace base | |
| 19 | |
| 20 namespace remoting { | 14 namespace remoting { |
| 21 | 15 |
| 22 static const uint32 kCreatedColor = 0xffccccff; | 16 static const uint32 kCreatedColor = 0xffccccff; |
| 23 static const uint32 kDisconnectedColor = 0xff00ccff; | 17 static const uint32 kDisconnectedColor = 0xff00ccff; |
| 24 static const uint32 kFailedColor = 0xffcc00ff; | 18 static const uint32 kFailedColor = 0xffcc00ff; |
| 25 | 19 |
| 26 // ChromotingView defines the behavior of an object that draws a view of the | 20 // ChromotingView defines the behavior of an object that draws a view of the |
| 27 // remote desktop. Its main function is to render the update stream onto the | 21 // remote desktop. Its main function is to render the update stream onto the |
| 28 // screen. | 22 // screen. |
| 29 class ChromotingView { | 23 class ChromotingView { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 scoped_refptr<media::VideoFrame> frame_; | 61 scoped_refptr<media::VideoFrame> frame_; |
| 68 | 62 |
| 69 // Dimensions of |frame_| bitmap. | 63 // Dimensions of |frame_| bitmap. |
| 70 int frame_width_; | 64 int frame_width_; |
| 71 int frame_height_; | 65 int frame_height_; |
| 72 }; | 66 }; |
| 73 | 67 |
| 74 } // namespace remoting | 68 } // namespace remoting |
| 75 | 69 |
| 76 #endif // REMOTING_CLIENT_CHROMOTING_VIEW_H_ | 70 #endif // REMOTING_CLIENT_CHROMOTING_VIEW_H_ |
| OLD | NEW |