| 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 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| 6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; | 124 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; |
| 125 | 125 |
| 126 // protocol::CursorShapeStub interface. | 126 // protocol::CursorShapeStub interface. |
| 127 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; | 127 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; |
| 128 | 128 |
| 129 // PepperVideoRenderer::EventHandler interface. | 129 // PepperVideoRenderer::EventHandler interface. |
| 130 void OnVideoDecodeError() override; | 130 void OnVideoDecodeError() override; |
| 131 void OnVideoFirstFrameReceived() override; | 131 void OnVideoFirstFrameReceived() override; |
| 132 void OnVideoSize(const webrtc::DesktopSize& size, | 132 void OnVideoSize(const webrtc::DesktopSize& size, |
| 133 const webrtc::DesktopVector& dpi) override; | 133 const webrtc::DesktopVector& dpi) override; |
| 134 void OnVideoShape(const webrtc::DesktopRegion& shape) override; | 134 void OnVideoShape(const webrtc::DesktopRegion* shape) override; |
| 135 void OnVideoFrameDirtyRegion( | 135 void OnVideoFrameDirtyRegion( |
| 136 const webrtc::DesktopRegion& dirty_region) override; | 136 const webrtc::DesktopRegion& dirty_region) override; |
| 137 | 137 |
| 138 // Registers a global log message handler that redirects the log output to | 138 // Registers a global log message handler that redirects the log output to |
| 139 // our plugin instance. | 139 // our plugin instance. |
| 140 // This is called by the plugin's PPP_InitializeModule. | 140 // This is called by the plugin's PPP_InitializeModule. |
| 141 // Note that no logging will be processed unless a ChromotingInstance has been | 141 // Note that no logging will be processed unless a ChromotingInstance has been |
| 142 // registered for logging (see RegisterLoggingInstance). | 142 // registered for logging (see RegisterLoggingInstance). |
| 143 static void RegisterLogMessageHandler(); | 143 static void RegisterLogMessageHandler(); |
| 144 | 144 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 281 |
| 282 // Weak reference to this instance, used for global logging and task posting. | 282 // Weak reference to this instance, used for global logging and task posting. |
| 283 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 283 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
| 284 | 284 |
| 285 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 285 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
| 286 }; | 286 }; |
| 287 | 287 |
| 288 } // namespace remoting | 288 } // namespace remoting |
| 289 | 289 |
| 290 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 290 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| OLD | NEW |