| Index: ui/events/test/events_test_utils_x11.cc
|
| diff --git a/ui/events/test/events_test_utils_x11.cc b/ui/events/test/events_test_utils_x11.cc
|
| index 67b16818cbb489031c67e045544aaa67c25fb099..42f3f4a62c2db31021158470f1c0ef4942975d03 100644
|
| --- a/ui/events/test/events_test_utils_x11.cc
|
| +++ b/ui/events/test/events_test_utils_x11.cc
|
| @@ -89,7 +89,7 @@ unsigned int XButtonEventButton(ui::EventType type,
|
| }
|
|
|
| void InitValuatorsForXIDeviceEvent(XIDeviceEvent* xiev) {
|
| - int valuator_count = ui::DeviceDataManager::DT_LAST_ENTRY;
|
| + int valuator_count = ui::DeviceDataManagerX11::DT_LAST_ENTRY;
|
| xiev->valuators.mask_len = (valuator_count / 8) + 1;
|
| xiev->valuators.mask = new unsigned char[xiev->valuators.mask_len];
|
| memset(xiev->valuators.mask, 0, xiev->valuators.mask_len);
|
| @@ -202,11 +202,11 @@ void ScopedXI2Event::InitScrollEvent(int deviceid,
|
| event_.reset(CreateXInput2Event(deviceid, XI_Motion, 0, gfx::Point()));
|
|
|
| Valuator valuators[] = {
|
| - Valuator(DeviceDataManager::DT_CMT_SCROLL_X, x_offset),
|
| - Valuator(DeviceDataManager::DT_CMT_SCROLL_Y, y_offset),
|
| - Valuator(DeviceDataManager::DT_CMT_ORDINAL_X, x_offset_ordinal),
|
| - Valuator(DeviceDataManager::DT_CMT_ORDINAL_Y, y_offset_ordinal),
|
| - Valuator(DeviceDataManager::DT_CMT_FINGER_COUNT, finger_count)
|
| + Valuator(DeviceDataManagerX11::DT_CMT_SCROLL_X, x_offset),
|
| + Valuator(DeviceDataManagerX11::DT_CMT_SCROLL_Y, y_offset),
|
| + Valuator(DeviceDataManagerX11::DT_CMT_ORDINAL_X, x_offset_ordinal),
|
| + Valuator(DeviceDataManagerX11::DT_CMT_ORDINAL_Y, y_offset_ordinal),
|
| + Valuator(DeviceDataManagerX11::DT_CMT_FINGER_COUNT, finger_count)
|
| };
|
| SetUpValuators(
|
| std::vector<Valuator>(valuators, valuators + arraysize(valuators)));
|
| @@ -221,11 +221,11 @@ void ScopedXI2Event::InitFlingScrollEvent(int deviceid,
|
| event_.reset(CreateXInput2Event(deviceid, XI_Motion, deviceid, gfx::Point()));
|
|
|
| Valuator valuators[] = {
|
| - Valuator(DeviceDataManager::DT_CMT_FLING_STATE, is_cancel ? 1 : 0),
|
| - Valuator(DeviceDataManager::DT_CMT_FLING_Y, y_velocity),
|
| - Valuator(DeviceDataManager::DT_CMT_ORDINAL_Y, y_velocity_ordinal),
|
| - Valuator(DeviceDataManager::DT_CMT_FLING_X, x_velocity),
|
| - Valuator(DeviceDataManager::DT_CMT_ORDINAL_X, x_velocity_ordinal)
|
| + Valuator(DeviceDataManagerX11::DT_CMT_FLING_STATE, is_cancel ? 1 : 0),
|
| + Valuator(DeviceDataManagerX11::DT_CMT_FLING_Y, y_velocity),
|
| + Valuator(DeviceDataManagerX11::DT_CMT_ORDINAL_Y, y_velocity_ordinal),
|
| + Valuator(DeviceDataManagerX11::DT_CMT_FLING_X, x_velocity),
|
| + Valuator(DeviceDataManagerX11::DT_CMT_ORDINAL_X, x_velocity_ordinal)
|
| };
|
|
|
| SetUpValuators(
|
| @@ -246,7 +246,7 @@ void ScopedXI2Event::SetUpValuators(const std::vector<Valuator>& valuators) {
|
| CHECK_EQ(GenericEvent, event_->type);
|
| XIDeviceEvent* xiev = static_cast<XIDeviceEvent*>(event_->xcookie.data);
|
| InitValuatorsForXIDeviceEvent(xiev);
|
| - ui::DeviceDataManager* manager = ui::DeviceDataManager::GetInstance();
|
| + ui::DeviceDataManagerX11* manager = ui::DeviceDataManagerX11::GetInstance();
|
| for (size_t i = 0; i < valuators.size(); ++i) {
|
| manager->SetValuatorDataForTest(xiev, valuators[i].data_type,
|
| valuators[i].value);
|
| @@ -258,13 +258,13 @@ void SetUpTouchPadForTest(unsigned int deviceid) {
|
| device_list.push_back(deviceid);
|
|
|
| TouchFactory::GetInstance()->SetPointerDeviceForTest(device_list);
|
| - ui::DeviceDataManager* manager = ui::DeviceDataManager::GetInstance();
|
| + ui::DeviceDataManagerX11* manager = ui::DeviceDataManagerX11::GetInstance();
|
| manager->SetDeviceListForTest(std::vector<unsigned int>(), device_list);
|
| }
|
|
|
| void SetUpTouchDevicesForTest(const std::vector<unsigned int>& devices) {
|
| TouchFactory::GetInstance()->SetTouchDeviceForTest(devices);
|
| - ui::DeviceDataManager* manager = ui::DeviceDataManager::GetInstance();
|
| + ui::DeviceDataManagerX11* manager = ui::DeviceDataManagerX11::GetInstance();
|
| manager->SetDeviceListForTest(devices, std::vector<unsigned int>());
|
| }
|
|
|
|
|