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

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

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change setter to public and add license header Created 5 years, 6 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/host/input_injector_win.cc ('k') | remoting/host/ipc_desktop_environment.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) 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/input_injector.h" 5 #include "remoting/host/input_injector.h"
6 6
7 #include <X11/extensions/XInput.h> 7 #include <X11/extensions/XInput.h>
8 #include <X11/extensions/XTest.h> 8 #include <X11/extensions/XTest.h>
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 #include <X11/XKBlib.h> 10 #include <X11/XKBlib.h>
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 if (!task_runner_->BelongsToCurrentThread()) { 637 if (!task_runner_->BelongsToCurrentThread()) {
638 task_runner_->PostTask(FROM_HERE, base::Bind(&Core::Stop, this)); 638 task_runner_->PostTask(FROM_HERE, base::Bind(&Core::Stop, this));
639 return; 639 return;
640 } 640 }
641 641
642 clipboard_.reset(); 642 clipboard_.reset();
643 } 643 }
644 644
645 } // namespace 645 } // namespace
646 646
647 // static
647 scoped_ptr<InputInjector> InputInjector::Create( 648 scoped_ptr<InputInjector> InputInjector::Create(
648 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 649 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
649 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { 650 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
650 scoped_ptr<InputInjectorX11> injector( 651 scoped_ptr<InputInjectorX11> injector(
651 new InputInjectorX11(main_task_runner)); 652 new InputInjectorX11(main_task_runner));
652 if (!injector->Init()) 653 if (!injector->Init())
653 return nullptr; 654 return nullptr;
654 return injector.Pass(); 655 return injector.Pass();
655 } 656 }
656 657
658 // static
659 bool InputInjector::SupportsTouchEvents() {
660 return false;
661 }
662
657 } // namespace remoting 663 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/input_injector_win.cc ('k') | remoting/host/ipc_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698