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

Unified Diff: ui/events/devices/device_data_manager.cc

Issue 1922783002: Move gfx::Display/Screen to display::Display/Screen in aura/events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: ui/events/devices/device_data_manager.cc
diff --git a/ui/events/devices/device_data_manager.cc b/ui/events/devices/device_data_manager.cc
index 00bd1d8cbd9c58d110bf356ddbfcd97edda03fdc..7b8467128321be11a8dd74d2a33daf0c7c4934fb 100644
--- a/ui/events/devices/device_data_manager.cc
+++ b/ui/events/devices/device_data_manager.cc
@@ -7,8 +7,8 @@
#include "base/at_exit.h"
#include "base/bind.h"
#include "base/logging.h"
+#include "ui/display/display.h"
#include "ui/events/devices/input_device_event_observer.h"
-#include "ui/gfx/display.h"
#include "ui/gfx/geometry/point3_f.h"
// This macro provides the implementation for the observer notification methods.
@@ -80,7 +80,8 @@ bool DeviceDataManager::HasInstance() {
void DeviceDataManager::ClearTouchDeviceAssociations() {
for (int i = 0; i < kMaxDeviceNum; i++) {
touch_device_transformer_map_[i] = gfx::Transform();
- touch_device_to_target_display_map_[i] = gfx::Display::kInvalidDisplayID;
+ touch_device_to_target_display_map_[i] =
+ display::Display::kInvalidDisplayID;
touch_radius_scale_map_[i] = 1.0;
}
}
@@ -129,7 +130,7 @@ int64_t DeviceDataManager::GetTargetDisplayForTouchDevice(
int touch_device_id) const {
if (IsTouchDeviceIdValid(touch_device_id))
return touch_device_to_target_display_map_[touch_device_id];
- return gfx::Display::kInvalidDisplayID;
+ return display::Display::kInvalidDisplayID;
}
void DeviceDataManager::OnTouchscreenDevicesUpdated(

Powered by Google App Engine
This is Rietveld 408576698