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

Unified Diff: ash/touch/touch_observer_hud.cc

Issue 17049002: Revert "Merge CMTEventData and ValuatorTracker" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/aura/root_window_host_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_observer_hud.cc
diff --git a/ash/touch/touch_observer_hud.cc b/ash/touch/touch_observer_hud.cc
index a9ac307be1efe86d11fd39d9bdb40f8966f3665d..e628f8907ebeab87bc30e4f0be31714ce1f66ac8 100644
--- a/ash/touch/touch_observer_hud.cc
+++ b/ash/touch/touch_observer_hud.cc
@@ -36,7 +36,7 @@
#include <X11/extensions/XInput2.h>
#include <X11/Xlib.h>
-#include "ui/base/x/device_data_manager.h"
+#include "ui/base/x/valuators.h"
#endif
namespace ash {
@@ -88,11 +88,11 @@ int GetTrackingId(const ui::TouchEvent& event) {
if (!event.HasNativeEvent())
return 0;
#if defined(USE_XI2_MT)
- ui::DeviceDataManager* manager = ui::DeviceDataManager::GetInstance();
+ ui::ValuatorTracker* valuators = ui::ValuatorTracker::GetInstance();
double tracking_id;
- if (manager->GetEventData(*event.native_event(),
- ui::DeviceDataManager::DT_TOUCH_TRACKING_ID,
- &tracking_id)) {
+ if (valuators->ExtractValuator(*event.native_event(),
+ ui::ValuatorTracker::VAL_TRACKING_ID,
+ &tracking_id)) {
return static_cast<int>(tracking_id);
}
#endif
« no previous file with comments | « no previous file | ui/aura/root_window_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698