Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: remoting/client/jingle_host_connection.h

Issue 3175028: Add mouse event support to Chromoting client (Pepper and X11). (Closed)
Patch Set: Remove win float/int conversion Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/client/input_handler.cc ('k') | remoting/client/jingle_host_connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // JingleHostConnection implements the HostConnection interface using 5 // JingleHostConnection implements the HostConnection interface using
6 // libjingle as the transport protocol. 6 // libjingle as the transport protocol.
7 // 7 //
8 // Much of this class focuses on translating JingleClient and JingleChannel 8 // Much of this class focuses on translating JingleClient and JingleChannel
9 // callbacks into HostConnection::HostEventCallback messages. 9 // callbacks into HostConnection::HostEventCallback messages.
10 // 10 //
(...skipping 28 matching lines...) Expand all
39 public JingleChannel::Callback, 39 public JingleChannel::Callback,
40 public JingleClient::Callback { 40 public JingleClient::Callback {
41 public: 41 public:
42 explicit JingleHostConnection(ClientContext* context); 42 explicit JingleHostConnection(ClientContext* context);
43 virtual ~JingleHostConnection(); 43 virtual ~JingleHostConnection();
44 44
45 virtual void Connect(const ClientConfig& config, 45 virtual void Connect(const ClientConfig& config,
46 HostEventCallback* event_callback); 46 HostEventCallback* event_callback);
47 virtual void Disconnect(); 47 virtual void Disconnect();
48 48
49 virtual void SendEvent(const ChromotingClientMessage& msg);
50
49 // JingleChannel::Callback interface. 51 // JingleChannel::Callback interface.
50 virtual void OnStateChange(JingleChannel* channel, 52 virtual void OnStateChange(JingleChannel* channel,
51 JingleChannel::State state); 53 JingleChannel::State state);
52 virtual void OnPacketReceived(JingleChannel* channel, 54 virtual void OnPacketReceived(JingleChannel* channel,
53 scoped_refptr<media::DataBuffer> buffer); 55 scoped_refptr<media::DataBuffer> buffer);
54 56
55 // JingleClient::Callback interface. 57 // JingleClient::Callback interface.
56 virtual void OnStateChange(JingleClient* client, JingleClient::State state); 58 virtual void OnStateChange(JingleClient* client, JingleClient::State state);
57 virtual bool OnAcceptConnection(JingleClient* client, const std::string& jid, 59 virtual bool OnAcceptConnection(JingleClient* client, const std::string& jid,
58 JingleChannel::Callback** callback); 60 JingleChannel::Callback** callback);
(...skipping 16 matching lines...) Expand all
75 HostEventCallback* event_callback_; 77 HostEventCallback* event_callback_;
76 78
77 DISALLOW_COPY_AND_ASSIGN(JingleHostConnection); 79 DISALLOW_COPY_AND_ASSIGN(JingleHostConnection);
78 }; 80 };
79 81
80 } // namespace remoting 82 } // namespace remoting
81 83
82 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::JingleHostConnection); 84 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::JingleHostConnection);
83 85
84 #endif // REMOTING_CLIENT_JINGLE_HOST_CONNECTION_H_ 86 #endif // REMOTING_CLIENT_JINGLE_HOST_CONNECTION_H_
OLDNEW
« no previous file with comments | « remoting/client/input_handler.cc ('k') | remoting/client/jingle_host_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698