| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; | 125 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; |
| 126 | 126 |
| 127 // protocol::CursorShapeStub interface. | 127 // protocol::CursorShapeStub interface. |
| 128 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; | 128 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; |
| 129 | 129 |
| 130 // PepperVideoRenderer::EventHandler interface. | 130 // PepperVideoRenderer::EventHandler interface. |
| 131 void OnVideoDecodeError() override; | 131 void OnVideoDecodeError() override; |
| 132 void OnVideoFirstFrameReceived() override; | 132 void OnVideoFirstFrameReceived() override; |
| 133 void OnVideoSize(const webrtc::DesktopSize& size, | 133 void OnVideoSize(const webrtc::DesktopSize& size, |
| 134 const webrtc::DesktopVector& dpi) override; | 134 const webrtc::DesktopVector& dpi) override; |
| 135 void OnVideoShape(const webrtc::DesktopRegion* shape) override; | |
| 136 void OnVideoFrameDirtyRegion( | 135 void OnVideoFrameDirtyRegion( |
| 137 const webrtc::DesktopRegion& dirty_region) override; | 136 const webrtc::DesktopRegion& dirty_region) override; |
| 138 | 137 |
| 139 // 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 |
| 140 // our plugin instance. | 139 // our plugin instance. |
| 141 // This is called by the plugin's PPP_InitializeModule. | 140 // This is called by the plugin's PPP_InitializeModule. |
| 142 // 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 |
| 143 // registered for logging (see RegisterLoggingInstance). | 142 // registered for logging (see RegisterLoggingInstance). |
| 144 static void RegisterLogMessageHandler(); | 143 static void RegisterLogMessageHandler(); |
| 145 | 144 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 290 |
| 292 // Weak reference to this instance, used for global logging and task posting. | 291 // Weak reference to this instance, used for global logging and task posting. |
| 293 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 292 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
| 294 | 293 |
| 295 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 294 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
| 296 }; | 295 }; |
| 297 | 296 |
| 298 } // namespace remoting | 297 } // namespace remoting |
| 299 | 298 |
| 300 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 299 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| OLD | NEW |