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

Side by Side Diff: remoting/host/event_executor_linux.cc

Issue 9617027: Chromoting: Implemented security attention sequence (SAS) emulation on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/host/event_executor.h" 5 #include "remoting/host/event_executor.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 #include <X11/XF86keysym.h> 10 #include <X11/XF86keysym.h>
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 if (event.has_wheel_offset_x() && event.wheel_offset_x() != 0) { 420 if (event.has_wheel_offset_x() && event.wheel_offset_x() != 0) {
421 int dx = event.wheel_offset_x(); 421 int dx = event.wheel_offset_x();
422 InjectScrollWheelClicks(HorizontalScrollWheelToX11ButtonNumber(dx), 422 InjectScrollWheelClicks(HorizontalScrollWheelToX11ButtonNumber(dx),
423 abs(dx)); 423 abs(dx));
424 } 424 }
425 } 425 }
426 426
427 } // namespace 427 } // namespace
428 428
429 EventExecutor* EventExecutor::Create(MessageLoop* message_loop, 429 EventExecutor* EventExecutor::Create(MessageLoop* message_loop,
430 IPC::ChannelProxy* chromoting_session,
430 Capturer* capturer) { 431 Capturer* capturer) {
431 EventExecutorLinux* executor = new EventExecutorLinux(message_loop, capturer); 432 EventExecutorLinux* executor = new EventExecutorLinux(message_loop, capturer);
432 if (!executor->Init()) { 433 if (!executor->Init()) {
433 delete executor; 434 delete executor;
434 executor = NULL; 435 executor = NULL;
435 } 436 }
436 return executor; 437 return executor;
437 } 438 }
438 439
439 } // namespace remoting 440 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698