Linux: Add support for the Chrome command-line option --touch-devices (issue #2205).

This commit is contained in:
Branko Čibej 2019-02-27 19:17:21 +00:00 committed by Marshall Greenblatt
parent 7f1453b294
commit 658bf2834a
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,10 @@
#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/resource/resource_bundle.h"
#if defined(USE_AURA) && defined(USE_X11)
#include "ui/events/devices/x11/touch_factory_x11.h"
#endif
#if defined(USE_AURA)
#include "ui/aura/env.h"
#include "ui/display/screen.h"
@ -107,6 +111,10 @@ void CefBrowserMainParts::ToolkitInitialized() {
}
void CefBrowserMainParts::PreMainMessageLoopStart() {
#if defined(USE_AURA) && defined(USE_X11)
ui::TouchFactory::SetTouchDeviceListFromCommandLine();
#endif
for (size_t i = 0; i < chrome_extra_parts_.size(); ++i)
chrome_extra_parts_[i]->PreMainMessageLoopStart();
}