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

Unified Diff: remoting/host/event_executor_win.cc

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: Don't ref-count ClipboardThreadProxy. 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/event_executor_win.cc
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc
index 430266a73177666039c9512ddbf3c8adcd11d8ae..26ff72cebdb1db9d56b3dc9924a0362df3fc20f2 100644
--- a/remoting/host/event_executor_win.cc
+++ b/remoting/host/event_executor_win.cc
@@ -44,7 +44,8 @@ class EventExecutorWin : public EventExecutor {
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
// EventExecutor interface.
- virtual void OnSessionStarted() OVERRIDE;
+ virtual void OnSessionStarted(
+ scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE;
virtual void OnSessionFinished() OVERRIDE;
private:
@@ -106,16 +107,18 @@ void EventExecutorWin::InjectMouseEvent(const MouseEvent& event) {
HandleMouse(event);
}
-void EventExecutorWin::OnSessionStarted() {
+void EventExecutorWin::OnSessionStarted(
+ scoped_ptr<protocol::ClipboardStub> client_clipboard) {
if (!ui_loop_->BelongsToCurrentThread()) {
ui_loop_->PostTask(
FROM_HERE,
base::Bind(&EventExecutorWin::OnSessionStarted,
- base::Unretained(this)));
+ base::Unretained(this),
+ base::Passed(client_clipboard.Pass())));
Wez 2012/05/30 23:58:02 I think you want base::Passed(&client_clipboard) h
simonmorris 2012/05/31 00:21:18 Done.
return;
}
- clipboard_->Start();
+ clipboard_->Start(client_clipboard.Pass());
}
void EventExecutorWin::OnSessionFinished() {

Powered by Google App Engine
This is Rietveld 408576698