OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/chromeos/system_logs/touch_log_source.h" | 5 #include "chrome/browser/chromeos/system_logs/touch_log_source.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "ash/touch/touch_hud_debug.h" | 9 #include "ash/touch/touch_hud_debug.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
16 #include "base/json/json_string_value_serializer.h" | 16 #include "base/json/json_string_value_serializer.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/process/launch.h" | 19 #include "base/process/launch.h" |
| 20 #include "base/threading/sequenced_worker_pool.h" |
20 #include "components/feedback/feedback_util.h" | 21 #include "components/feedback/feedback_util.h" |
21 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
22 #include "ui/ozone/public/input_controller.h" | 23 #include "ui/ozone/public/input_controller.h" |
23 #include "ui/ozone/public/ozone_platform.h" | 24 #include "ui/ozone/public/ozone_platform.h" |
24 | 25 |
25 using content::BrowserThread; | 26 using content::BrowserThread; |
26 | 27 |
27 namespace { | 28 namespace { |
28 | 29 |
29 const char kHUDLogDataKey[] = "hud_log"; | 30 const char kHUDLogDataKey[] = "hud_log"; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 193 |
193 std::unique_ptr<SystemLogsResponse> response(new SystemLogsResponse); | 194 std::unique_ptr<SystemLogsResponse> response(new SystemLogsResponse); |
194 CollectTouchHudDebugLog(response.get()); | 195 CollectTouchHudDebugLog(response.get()); |
195 | 196 |
196 // Collect touch device status logs. | 197 // Collect touch device status logs. |
197 ui::OzonePlatform::GetInstance()->GetInputController()->GetTouchDeviceStatus( | 198 ui::OzonePlatform::GetInstance()->GetInputController()->GetTouchDeviceStatus( |
198 base::Bind(&OnStatusLogCollected, base::Passed(&response), callback)); | 199 base::Bind(&OnStatusLogCollected, base::Passed(&response), callback)); |
199 } | 200 } |
200 | 201 |
201 } // namespace system_logs | 202 } // namespace system_logs |
OLD | NEW |