| 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 // PepperViewProxy is used to invoke PepperView object on pepper thread. It | 5 // PepperViewProxy is used to invoke PepperView object on pepper thread. It |
| 6 // has the same interface as PepperView. When a method calls is received on | 6 // has the same interface as PepperView. When a method calls is received on |
| 7 // any chromoting threads it delegates the method call to pepper thread. | 7 // any chromoting threads it delegates the method call to pepper thread. |
| 8 // It also provide a detach mechanism so that when PepperView object is | 8 // It also provide a detach mechanism so that when PepperView object is |
| 9 // destroyed PepperViewProxy will not call it anymore. This is important in | 9 // destroyed PepperViewProxy will not call it anymore. This is important in |
| 10 // providing a safe shutdown of ChromotingInstance and PepperView. | 10 // providing a safe shutdown of ChromotingInstance and PepperView. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // ChromotingView implementation. | 39 // ChromotingView implementation. |
| 40 virtual bool Initialize() OVERRIDE; | 40 virtual bool Initialize() OVERRIDE; |
| 41 virtual void TearDown() OVERRIDE; | 41 virtual void TearDown() OVERRIDE; |
| 42 virtual void Paint() OVERRIDE; | 42 virtual void Paint() OVERRIDE; |
| 43 virtual void SetSolidFill(uint32 color) OVERRIDE; | 43 virtual void SetSolidFill(uint32 color) OVERRIDE; |
| 44 virtual void UnsetSolidFill() OVERRIDE; | 44 virtual void UnsetSolidFill() OVERRIDE; |
| 45 virtual void SetConnectionState( | 45 virtual void SetConnectionState( |
| 46 protocol::ConnectionToHost::State state, | 46 protocol::ConnectionToHost::State state, |
| 47 protocol::ConnectionToHost::Error error) OVERRIDE; | 47 protocol::ConnectionToHost::Error error) OVERRIDE; |
| 48 virtual void UpdateLoginStatus(bool success, const std::string& info) | |
| 49 OVERRIDE; | |
| 50 | 48 |
| 51 // This method returns a value, so must run synchronously, so must be | 49 // This method returns a value, so must run synchronously, so must be |
| 52 // called only on the pepper thread. | 50 // called only on the pepper thread. |
| 53 virtual double GetHorizontalScaleRatio() const OVERRIDE; | 51 virtual double GetHorizontalScaleRatio() const OVERRIDE; |
| 54 virtual double GetVerticalScaleRatio() const OVERRIDE; | 52 virtual double GetVerticalScaleRatio() const OVERRIDE; |
| 55 | 53 |
| 56 // FrameConsumer implementation. | 54 // FrameConsumer implementation. |
| 57 virtual void AllocateFrame(media::VideoFrame::Format format, | 55 virtual void AllocateFrame(media::VideoFrame::Format format, |
| 58 size_t width, | 56 size_t width, |
| 59 size_t height, | 57 size_t height, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 84 PepperView* view_; | 82 PepperView* view_; |
| 85 | 83 |
| 86 scoped_refptr<base::MessageLoopProxy> plugin_message_loop_; | 84 scoped_refptr<base::MessageLoopProxy> plugin_message_loop_; |
| 87 | 85 |
| 88 DISALLOW_COPY_AND_ASSIGN(PepperViewProxy); | 86 DISALLOW_COPY_AND_ASSIGN(PepperViewProxy); |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 } // namespace remoting | 89 } // namespace remoting |
| 92 | 90 |
| 93 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_PROXY_H_ | 91 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_PROXY_H_ |
| OLD | NEW |