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

Side by Side Diff: ui/events/ozone/evdev/input_controller_evdev.cc

Issue 893753002: Dump touchpad event logs for touch log source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot rebase Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/events/ozone/evdev/input_controller_evdev.h" 5 #include "ui/events/ozone/evdev/input_controller_evdev.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <linux/input.h> 8 #include <linux/input.h>
9 9
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 void InputControllerEvdev::GetTouchDeviceStatus( 147 void InputControllerEvdev::GetTouchDeviceStatus(
148 const GetTouchDeviceStatusReply& reply) { 148 const GetTouchDeviceStatusReply& reply) {
149 if (input_device_factory_) 149 if (input_device_factory_)
150 input_device_factory_->GetTouchDeviceStatus(reply); 150 input_device_factory_->GetTouchDeviceStatus(reply);
151 else 151 else
152 reply.Run(make_scoped_ptr(new std::string)); 152 reply.Run(make_scoped_ptr(new std::string));
153 } 153 }
154 154
155 void InputControllerEvdev::GetTouchEventLog(
156 const base::FilePath& out_dir,
157 const GetTouchEventLogReply& reply) {
158 if (input_device_factory_)
159 input_device_factory_->GetTouchEventLog(out_dir, reply);
160 else
161 reply.Run(make_scoped_ptr(new std::vector<base::FilePath>));
162 }
163
155 void InputControllerEvdev::ScheduleUpdateDeviceSettings() { 164 void InputControllerEvdev::ScheduleUpdateDeviceSettings() {
156 if (!input_device_factory_ || settings_update_pending_) 165 if (!input_device_factory_ || settings_update_pending_)
157 return; 166 return;
158 base::ThreadTaskRunnerHandle::Get()->PostTask( 167 base::ThreadTaskRunnerHandle::Get()->PostTask(
159 FROM_HERE, base::Bind(&InputControllerEvdev::UpdateDeviceSettings, 168 FROM_HERE, base::Bind(&InputControllerEvdev::UpdateDeviceSettings,
160 weak_ptr_factory_.GetWeakPtr())); 169 weak_ptr_factory_.GetWeakPtr()));
161 settings_update_pending_ = true; 170 settings_update_pending_ = true;
162 } 171 }
163 172
164 void InputControllerEvdev::UpdateDeviceSettings() { 173 void InputControllerEvdev::UpdateDeviceSettings() {
165 input_device_factory_->UpdateInputDeviceSettings(input_device_settings_); 174 input_device_factory_->UpdateInputDeviceSettings(input_device_settings_);
166 settings_update_pending_ = false; 175 settings_update_pending_ = false;
167 } 176 }
168 177
169 } // namespace ui 178 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/input_controller_evdev.h ('k') | ui/events/ozone/evdev/input_device_factory_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698