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

Side by Side Diff: remoting/client/input_handler.cc

Issue 7218061: Close all writers before JingleSession is destroyed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.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 #include "remoting/client/input_handler.h" 5 #include "remoting/client/input_handler.h"
6 6
7 #include "remoting/client/chromoting_view.h" 7 #include "remoting/client/chromoting_view.h"
8 #include "remoting/proto/event.pb.h" 8 #include "remoting/proto/event.pb.h"
9 #include "remoting/protocol/connection_to_host.h" 9 #include "remoting/protocol/connection_to_host.h"
10 #include "remoting/protocol/input_stub.h"
10 11
11 namespace remoting { 12 namespace remoting {
12 13
13 using protocol::KeyEvent; 14 using protocol::KeyEvent;
14 using protocol::MouseEvent; 15 using protocol::MouseEvent;
15 16
16 InputHandler::InputHandler(ClientContext* context, 17 InputHandler::InputHandler(ClientContext* context,
17 protocol::ConnectionToHost* connection, 18 protocol::ConnectionToHost* connection,
18 ChromotingView* view) 19 ChromotingView* view)
19 : context_(context), 20 : context_(context),
(...skipping 29 matching lines...) Expand all
49 if (stub) { 50 if (stub) {
50 MouseEvent* event = new MouseEvent(); 51 MouseEvent* event = new MouseEvent();
51 event->set_button(button); 52 event->set_button(button);
52 event->set_button_down(button_down); 53 event->set_button_down(button_down);
53 54
54 stub->InjectMouseEvent(event, new DeleteTask<MouseEvent>(event)); 55 stub->InjectMouseEvent(event, new DeleteTask<MouseEvent>(event));
55 } 56 }
56 } 57 }
57 58
58 } // namespace remoting 59 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698