| 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 22 matching lines...) Expand all Loading... |
| 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::ErrorCode error) OVERRIDE; | 41 protocol::ErrorCode error) OVERRIDE; |
| 42 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; | 42 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; |
| 43 virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE; |
| 43 | 44 |
| 44 // FrameConsumer implementation. | 45 // FrameConsumer implementation. |
| 45 virtual void ApplyBuffer(const SkISize& view_size, | 46 virtual void ApplyBuffer(const SkISize& view_size, |
| 46 const SkIRect& clip_area, | 47 const SkIRect& clip_area, |
| 47 pp::ImageData* buffer, | 48 pp::ImageData* buffer, |
| 48 const SkRegion& region) OVERRIDE; | 49 const SkRegion& region) OVERRIDE; |
| 49 virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE; | 50 virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE; |
| 50 virtual void SetSourceSize(const SkISize& source_size) OVERRIDE; | 51 virtual void SetSourceSize(const SkISize& source_size) OVERRIDE; |
| 51 | 52 |
| 52 // Sets the display size and clipping area of this view. | 53 // Sets the display size and clipping area of this view. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 118 |
| 118 // True after the first call to ApplyBuffer(). | 119 // True after the first call to ApplyBuffer(). |
| 119 bool frame_received_; | 120 bool frame_received_; |
| 120 | 121 |
| 121 DISALLOW_COPY_AND_ASSIGN(PepperView); | 122 DISALLOW_COPY_AND_ASSIGN(PepperView); |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace remoting | 125 } // namespace remoting |
| 125 | 126 |
| 126 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ | 127 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ |
| OLD | NEW |