| 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" | |
| 21 #include "components/feedback/feedback_util.h" | 20 #include "components/feedback/feedback_util.h" |
| 22 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 23 #include "ui/ozone/public/input_controller.h" | 22 #include "ui/ozone/public/input_controller.h" |
| 24 #include "ui/ozone/public/ozone_platform.h" | 23 #include "ui/ozone/public/ozone_platform.h" |
| 25 | 24 |
| 26 using content::BrowserThread; | 25 using content::BrowserThread; |
| 27 | 26 |
| 28 namespace { | 27 namespace { |
| 29 | 28 |
| 30 const char kHUDLogDataKey[] = "hud_log"; | 29 const char kHUDLogDataKey[] = "hud_log"; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 192 |
| 194 std::unique_ptr<SystemLogsResponse> response(new SystemLogsResponse); | 193 std::unique_ptr<SystemLogsResponse> response(new SystemLogsResponse); |
| 195 CollectTouchHudDebugLog(response.get()); | 194 CollectTouchHudDebugLog(response.get()); |
| 196 | 195 |
| 197 // Collect touch device status logs. | 196 // Collect touch device status logs. |
| 198 ui::OzonePlatform::GetInstance()->GetInputController()->GetTouchDeviceStatus( | 197 ui::OzonePlatform::GetInstance()->GetInputController()->GetTouchDeviceStatus( |
| 199 base::Bind(&OnStatusLogCollected, base::Passed(&response), callback)); | 198 base::Bind(&OnStatusLogCollected, base::Passed(&response), callback)); |
| 200 } | 199 } |
| 201 | 200 |
| 202 } // namespace system_logs | 201 } // namespace system_logs |
| OLD | NEW |