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

Unified Diff: chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc

Issue 864253002: Dump property values for the touch log source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/events/ozone/evdev/input_controller_evdev.h » ('j') | ui/ozone/public/input_controller.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc
diff --git a/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc b/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc
index 3e9f16524ca3b09afa34f637be703fbd256ced40..60e642a4c4fb351bef2fa30119b2668a339b3b39 100644
--- a/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc
+++ b/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc
@@ -12,6 +12,8 @@
#include "base/process/launch.h"
#include "components/feedback/feedback_util.h"
#include "content/public/browser/browser_thread.h"
+#include "ui/ozone/public/input_controller.h"
+#include "ui/ozone/public/ozone_platform.h"
using content::BrowserThread;
@@ -19,6 +21,11 @@ namespace {
const char kHUDLogDataKey[] = "hud_log";
+// The prefix "hack-33025" was historically chosen in http://crbug.com/139715.
+// We continue to go with it in order to be compatible with the existing touch
+// log processing toolchain.
+const char kDeviceStatusLogDataKey[] = "hack-33025-touchpad";
+
void GetTouchLogsOzone(system_logs::SystemLogsResponse* response) {
scoped_ptr<base::DictionaryValue> dictionary =
ash::TouchHudDebug::GetAllAsDictionary();
@@ -30,9 +37,9 @@ void GetTouchLogsOzone(system_logs::SystemLogsResponse* response) {
(*response)[kHUDLogDataKey] = touch_log;
}
- // TODO(sheckylin): Add ozone touch log collection implementation. See
- // http://crbug.com/400022.
- NOTIMPLEMENTED();
+ (*response)[kDeviceStatusLogDataKey] = ui::OzonePlatform::GetInstance()
+ ->GetInputController()
+ ->GetGestureDeviceStatus();
}
} // namespace
« no previous file with comments | « no previous file | ui/events/ozone/evdev/input_controller_evdev.h » ('j') | ui/ozone/public/input_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698