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

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

Issue 2456563002: Remove supports_touch_events flag from BasicDesktopEnvironment (Closed)
Patch Set: Created 4 years, 1 month 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 // This file implements a standalone host process for Me2Me. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cstdint> 9 #include <cstdint>
10 #include <memory> 10 #include <memory>
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 if (enable_window_capture_) { 842 if (enable_window_capture_) {
843 desktop_environment_factory = new SingleWindowDesktopEnvironmentFactory( 843 desktop_environment_factory = new SingleWindowDesktopEnvironmentFactory(
844 context_->network_task_runner(), context_->video_capture_task_runner(), 844 context_->network_task_runner(), context_->video_capture_task_runner(),
845 context_->input_task_runner(), context_->ui_task_runner(), window_id_); 845 context_->input_task_runner(), context_->ui_task_runner(), window_id_);
846 } else { 846 } else {
847 desktop_environment_factory = new Me2MeDesktopEnvironmentFactory( 847 desktop_environment_factory = new Me2MeDesktopEnvironmentFactory(
848 context_->network_task_runner(), context_->video_capture_task_runner(), 848 context_->network_task_runner(), context_->video_capture_task_runner(),
849 context_->input_task_runner(), context_->ui_task_runner()); 849 context_->input_task_runner(), context_->ui_task_runner());
850 } 850 }
851 #endif // !defined(REMOTING_MULTI_PROCESS) 851 #endif // !defined(REMOTING_MULTI_PROCESS)
852 desktop_environment_factory->set_supports_touch_events(
853 InputInjector::SupportsTouchEvents());
854 852
855 desktop_environment_factory_.reset(desktop_environment_factory); 853 desktop_environment_factory_.reset(desktop_environment_factory);
856 854
857 context_->network_task_runner()->PostTask( 855 context_->network_task_runner()->PostTask(
858 FROM_HERE, 856 FROM_HERE,
859 base::Bind(&HostProcess::StartOnNetworkThread, this)); 857 base::Bind(&HostProcess::StartOnNetworkThread, this));
860 } 858 }
861 859
862 void HostProcess::ShutdownOnUiThread() { 860 void HostProcess::ShutdownOnUiThread() {
863 DCHECK(context_->ui_task_runner()->BelongsToCurrentThread()); 861 DCHECK(context_->ui_task_runner()->BelongsToCurrentThread());
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); 1660 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds));
1663 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog); 1661 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog);
1664 1662
1665 // Run the main (also UI) message loop until the host no longer needs it. 1663 // Run the main (also UI) message loop until the host no longer needs it.
1666 base::RunLoop().Run(); 1664 base::RunLoop().Run();
1667 1665
1668 return exit_code; 1666 return exit_code;
1669 } 1667 }
1670 1668
1671 } // namespace remoting 1669 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698