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

Side by Side Diff: remoting/client/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/chromoting_view.cc ('k') | remoting/client/input_handler.h » ('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 #ifndef REMOTING_CLIENT_HOST_CONNECTION_H_ 5 #ifndef REMOTING_CLIENT_HOST_CONNECTION_H_
6 #define REMOTING_CLIENT_HOST_CONNECTION_H_ 6 #define REMOTING_CLIENT_HOST_CONNECTION_H_
7 7
8 #include "base/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "remoting/base/protocol_decoder.h" 10 #include "remoting/base/protocol_decoder.h"
(...skipping 25 matching lines...) Expand all
36 virtual void OnConnectionFailed(HostConnection* conn) = 0; 36 virtual void OnConnectionFailed(HostConnection* conn) = 0;
37 }; 37 };
38 38
39 virtual ~HostConnection() {} 39 virtual ~HostConnection() {}
40 40
41 // TODO(ajwong): We need to generalize this API. 41 // TODO(ajwong): We need to generalize this API.
42 virtual void Connect(const ClientConfig& config, 42 virtual void Connect(const ClientConfig& config,
43 HostEventCallback* event_callback) = 0; 43 HostEventCallback* event_callback) = 0;
44 virtual void Disconnect() = 0; 44 virtual void Disconnect() = 0;
45 45
46 // Send an input event to the host.
47 virtual void SendEvent(const ChromotingClientMessage& msg) = 0;
48
46 protected: 49 protected:
47 HostConnection() {} 50 HostConnection() {}
48 51
49 private: 52 private:
50 DISALLOW_COPY_AND_ASSIGN(HostConnection); 53 DISALLOW_COPY_AND_ASSIGN(HostConnection);
51 }; 54 };
52 55
53 } // namespace remoting 56 } // namespace remoting
54 57
55 #endif // REMOTING_CLIENT_HOST_CONNECTION_H_ 58 #endif // REMOTING_CLIENT_HOST_CONNECTION_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_view.cc ('k') | remoting/client/input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698