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

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: back to setting a flag on DesktopEnvironmentFactory Created 5 years, 8 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
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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 if (!task_runner_->BelongsToCurrentThread()) { 622 if (!task_runner_->BelongsToCurrentThread()) {
623 task_runner_->PostTask(FROM_HERE, base::Bind(&Core::Stop, this)); 623 task_runner_->PostTask(FROM_HERE, base::Bind(&Core::Stop, this));
624 return; 624 return;
625 } 625 }
626 626
627 clipboard_.reset(); 627 clipboard_.reset();
628 } 628 }
629 629
630 } // namespace 630 } // namespace
631 631
632 // static
632 scoped_ptr<InputInjector> InputInjector::Create( 633 scoped_ptr<InputInjector> InputInjector::Create(
633 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 634 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
634 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { 635 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
635 scoped_ptr<InputInjectorX11> injector( 636 scoped_ptr<InputInjectorX11> injector(
636 new InputInjectorX11(main_task_runner)); 637 new InputInjectorX11(main_task_runner));
637 if (!injector->Init()) 638 if (!injector->Init())
638 return nullptr; 639 return nullptr;
639 return injector.Pass(); 640 return injector.Pass();
640 } 641 }
641 642
643 // static
644 bool InputInjector::CanInjectTouch() {
645 return false;
646 }
647
642 } // namespace remoting 648 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698