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

Unified Diff: remoting/host/client_session.h

Issue 10413060: [Chromoting] Let the Windows IT2Me host send clipboard events to the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use MessageLoopProxy+WeakPtr. Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index fd2b9a088f51bb6786c8da610aac004ddfd31450..ec6bbb09768aedd54d507c7beeb3134a0d00db0f 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -11,7 +11,9 @@
#include "base/threading/non_thread_safe.h"
#include "remoting/host/remote_input_filter.h"
#include "remoting/protocol/clipboard_echo_filter.h"
+#include "remoting/protocol/clipboard_proxy.h"
#include "remoting/protocol/clipboard_stub.h"
+#include "remoting/protocol/clipboard_weak_ptr.h"
#include "remoting/protocol/connection_to_client.h"
#include "remoting/protocol/host_event_stub.h"
#include "remoting/protocol/host_stub.h"
@@ -121,6 +123,9 @@ class ClientSession : public protocol::HostEventStub,
// keys or mouse buttons pressed then these will be released.
void SetDisableInputs(bool disable_inputs);
+ // Gets a stub for sending clipboard events to the client.
+ scoped_refptr<protocol::ClipboardProxy> ClientClipboard();
Wez 2012/05/30 01:15:43 Since this creates a ClipboardProxy it should have
simonmorris 2012/05/30 16:54:06 Done.
+
private:
EventHandler* event_handler_;
@@ -153,6 +158,9 @@ class ClientSession : public protocol::HostEventStub,
// back to it.
protocol::ClipboardEchoFilter clipboard_echo_filter_;
+ // Clipboard stub used to provide a weak pointer to the client clipboard.
+ protocol::ClipboardWeakPtr client_clipboard_;
Wez 2012/05/30 01:15:43 I think you can achieve the same effect without th
simonmorris 2012/05/30 16:54:06 Done.
+
// Capturer, used to determine current screen size for ensuring injected
// mouse events fall within the screen area.
// TODO(lambroslambrou): Move floor-control logic, and clamping to screen

Powered by Google App Engine
This is Rietveld 408576698