OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 for Pepper. It is | 5 // This class is an implementation of the ChromotingView for Pepper. It is |
6 // callable only on the Pepper thread. | 6 // callable only on the Pepper thread. |
7 | 7 |
8 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ | 8 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ |
9 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ | 9 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 PepperView(ChromotingInstance* instance, | 31 PepperView(ChromotingInstance* instance, |
32 ClientContext* context, | 32 ClientContext* context, |
33 FrameProducer* producer); | 33 FrameProducer* producer); |
34 virtual ~PepperView(); | 34 virtual ~PepperView(); |
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 SetConnectionState( | 39 virtual void SetConnectionState( |
40 protocol::ConnectionToHost::State state, | 40 protocol::ConnectionToHost::State state, |
41 protocol::ConnectionToHost::Error error) OVERRIDE; | 41 protocol::ErrorCode error) OVERRIDE; |
42 | 42 |
43 // FrameConsumer implementation. | 43 // FrameConsumer implementation. |
44 virtual void ApplyBuffer(const SkISize& view_size, | 44 virtual void ApplyBuffer(const SkISize& view_size, |
45 const SkIRect& clip_area, | 45 const SkIRect& clip_area, |
46 pp::ImageData* buffer, | 46 pp::ImageData* buffer, |
47 const SkRegion& region) OVERRIDE; | 47 const SkRegion& region) OVERRIDE; |
48 virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE; | 48 virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE; |
49 virtual void SetSourceSize(const SkISize& source_size) OVERRIDE; | 49 virtual void SetSourceSize(const SkISize& source_size) OVERRIDE; |
50 | 50 |
51 // Sets the display size and clipping area of this view. | 51 // Sets the display size and clipping area of this view. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 bool in_teardown_; | 114 bool in_teardown_; |
115 | 115 |
116 base::WeakPtrFactory<PepperView> weak_factory_; | 116 base::WeakPtrFactory<PepperView> weak_factory_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(PepperView); | 118 DISALLOW_COPY_AND_ASSIGN(PepperView); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace remoting | 121 } // namespace remoting |
122 | 122 |
123 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ | 123 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ |
OLD | NEW |