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 // This class is an implementation of the ChromotingView using Pepper devices | 5 // This class is an implementation of the ChromotingView using Pepper devices |
6 // as the backing stores. This class is used only on pepper thread. | 6 // as the backing stores. This class is used only on pepper thread. |
7 // Chromoting objects access this object through PepperViewProxy which | 7 // Chromoting objects access this object through PepperViewProxy which |
8 // delegates method calls on the pepper thread. | 8 // delegates method calls on the pepper thread. |
9 | 9 |
10 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ | 10 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // ChromotingView implementation. | 36 // ChromotingView implementation. |
37 virtual bool Initialize() OVERRIDE; | 37 virtual bool Initialize() OVERRIDE; |
38 virtual void TearDown() OVERRIDE; | 38 virtual void TearDown() OVERRIDE; |
39 virtual void Paint() OVERRIDE; | 39 virtual void Paint() OVERRIDE; |
40 virtual void SetSolidFill(uint32 color) OVERRIDE; | 40 virtual void SetSolidFill(uint32 color) OVERRIDE; |
41 virtual void UnsetSolidFill() OVERRIDE; | 41 virtual void UnsetSolidFill() OVERRIDE; |
42 virtual void SetConnectionState( | 42 virtual void SetConnectionState( |
43 protocol::ConnectionToHost::State state, | 43 protocol::ConnectionToHost::State state, |
44 protocol::ConnectionToHost::Error error) OVERRIDE; | 44 protocol::ConnectionToHost::Error error) OVERRIDE; |
45 virtual void UpdateLoginStatus(bool success, | |
46 const std::string& info) OVERRIDE; | |
47 virtual double GetHorizontalScaleRatio() const OVERRIDE; | 45 virtual double GetHorizontalScaleRatio() const OVERRIDE; |
48 virtual double GetVerticalScaleRatio() const OVERRIDE; | 46 virtual double GetVerticalScaleRatio() const OVERRIDE; |
49 | 47 |
50 // FrameConsumer implementation. | 48 // FrameConsumer implementation. |
51 virtual void AllocateFrame(media::VideoFrame::Format format, | 49 virtual void AllocateFrame(media::VideoFrame::Format format, |
52 size_t width, | 50 size_t width, |
53 size_t height, | 51 size_t height, |
54 base::TimeDelta timestamp, | 52 base::TimeDelta timestamp, |
55 base::TimeDelta duration, | 53 base::TimeDelta duration, |
56 scoped_refptr<media::VideoFrame>* frame_out, | 54 scoped_refptr<media::VideoFrame>* frame_out, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 uint32 static_fill_color_; | 107 uint32 static_fill_color_; |
110 | 108 |
111 ScopedRunnableMethodFactory<PepperView> task_factory_; | 109 ScopedRunnableMethodFactory<PepperView> task_factory_; |
112 | 110 |
113 DISALLOW_COPY_AND_ASSIGN(PepperView); | 111 DISALLOW_COPY_AND_ASSIGN(PepperView); |
114 }; | 112 }; |
115 | 113 |
116 } // namespace remoting | 114 } // namespace remoting |
117 | 115 |
118 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ | 116 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ |
OLD | NEW |