| 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 // TODO(ajwong): We need to come up with a better description of the | 5 // TODO(ajwong): We need to come up with a better description of the |
| 6 // responsibilities for each thread. | 6 // responsibilities for each thread. |
| 7 | 7 |
| 8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| 9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 virtual void DidChangeView(const pp::Rect& position, | 101 virtual void DidChangeView(const pp::Rect& position, |
| 102 const pp::Rect& clip) OVERRIDE; | 102 const pp::Rect& clip) OVERRIDE; |
| 103 virtual bool Init(uint32_t argc, const char* argn[], | 103 virtual bool Init(uint32_t argc, const char* argn[], |
| 104 const char* argv[]) OVERRIDE; | 104 const char* argv[]) OVERRIDE; |
| 105 virtual void HandleMessage(const pp::Var& message) OVERRIDE; | 105 virtual void HandleMessage(const pp::Var& message) OVERRIDE; |
| 106 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; | 106 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; |
| 107 | 107 |
| 108 // ClientUserInterface interface. | 108 // ClientUserInterface interface. |
| 109 virtual void OnConnectionState(protocol::ConnectionToHost::State state, | 109 virtual void OnConnectionState(protocol::ConnectionToHost::State state, |
| 110 protocol::ErrorCode error) OVERRIDE; | 110 protocol::ErrorCode error) OVERRIDE; |
| 111 virtual void OnConnectionReady(bool ready) OVERRIDE; |
| 111 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; | 112 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; |
| 112 virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE; | 113 virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE; |
| 113 | 114 |
| 114 // protocol::ClipboardStub interface. | 115 // protocol::ClipboardStub interface. |
| 115 virtual void InjectClipboardEvent( | 116 virtual void InjectClipboardEvent( |
| 116 const protocol::ClipboardEvent& event) OVERRIDE; | 117 const protocol::ClipboardEvent& event) OVERRIDE; |
| 117 | 118 |
| 118 // protocol::CursorShapeStub interface. | 119 // protocol::CursorShapeStub interface. |
| 119 virtual void SetCursorShape( | 120 virtual void SetCursorShape( |
| 120 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE; | 121 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 scoped_refptr<PepperXmppProxy> xmpp_proxy_; | 211 scoped_refptr<PepperXmppProxy> xmpp_proxy_; |
| 211 | 212 |
| 212 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 213 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
| 213 | 214 |
| 214 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 215 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
| 215 }; | 216 }; |
| 216 | 217 |
| 217 } // namespace remoting | 218 } // namespace remoting |
| 218 | 219 |
| 219 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 220 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| OLD | NEW |