| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // ClientUserInterface interface. | 111 // ClientUserInterface interface. |
| 112 void OnConnectionState(protocol::ConnectionToHost::State state, | 112 void OnConnectionState(protocol::ConnectionToHost::State state, |
| 113 protocol::ErrorCode error) override; | 113 protocol::ErrorCode error) override; |
| 114 void OnConnectionReady(bool ready) override; | 114 void OnConnectionReady(bool ready) override; |
| 115 void OnRouteChanged(const std::string& channel_name, | 115 void OnRouteChanged(const std::string& channel_name, |
| 116 const protocol::TransportRoute& route) override; | 116 const protocol::TransportRoute& route) override; |
| 117 void SetCapabilities(const std::string& capabilities) override; | 117 void SetCapabilities(const std::string& capabilities) override; |
| 118 void SetPairingResponse( | 118 void SetPairingResponse( |
| 119 const protocol::PairingResponse& pairing_response) override; | 119 const protocol::PairingResponse& pairing_response) override; |
| 120 void DeliverHostMessage(const protocol::ExtensionMessage& message) override; | 120 void DeliverHostMessage(const protocol::ExtensionMessage& message) override; |
| 121 void SetDesktopSize(const webrtc::DesktopSize& size, |
| 122 const webrtc::DesktopVector& dpi) override; |
| 121 protocol::ClipboardStub* GetClipboardStub() override; | 123 protocol::ClipboardStub* GetClipboardStub() override; |
| 122 protocol::CursorShapeStub* GetCursorShapeStub() override; | 124 protocol::CursorShapeStub* GetCursorShapeStub() override; |
| 123 | 125 |
| 124 // protocol::ClipboardStub interface. | 126 // protocol::ClipboardStub interface. |
| 125 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; | 127 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; |
| 126 | 128 |
| 127 // protocol::CursorShapeStub interface. | 129 // protocol::CursorShapeStub interface. |
| 128 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; | 130 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; |
| 129 | 131 |
| 130 // PepperVideoRenderer::EventHandler interface. | 132 // PepperVideoRenderer::EventHandler interface. |
| 131 void OnVideoDecodeError() override; | 133 void OnVideoDecodeError() override; |
| 132 void OnVideoFirstFrameReceived() override; | 134 void OnVideoFirstFrameReceived() override; |
| 133 void OnVideoSize(const webrtc::DesktopSize& size, | |
| 134 const webrtc::DesktopVector& dpi) 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 // 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. |
| 292 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 292 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
| 293 | 293 |
| 294 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 294 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
| 295 }; | 295 }; |
| 296 | 296 |
| 297 } // namespace remoting | 297 } // namespace remoting |
| 298 | 298 |
| 299 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 299 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| OLD | NEW |