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

Unified Diff: ui/display/chromeos/touchscreen_delegate_impl.cc

Issue 508303002: Move touchscreen device caching to DeviceDataManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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/display/chromeos/touchscreen_delegate_impl.cc
diff --git a/ui/display/chromeos/touchscreen_delegate_impl.cc b/ui/display/chromeos/touchscreen_delegate_impl.cc
index dc60e3fb24604d7f3b1d5c7ba3774ff42f16454b..29dc54cf04eef269529af4b7f53173a877b5755e 100644
--- a/ui/display/chromeos/touchscreen_delegate_impl.cc
+++ b/ui/display/chromeos/touchscreen_delegate_impl.cc
@@ -9,20 +9,20 @@
#include "ui/display/types/chromeos/display_mode.h"
#include "ui/display/types/chromeos/display_snapshot.h"
-#include "ui/display/types/chromeos/touchscreen_device_manager.h"
+#include "ui/events/device_data_manager.h"
namespace ui {
-TouchscreenDelegateImpl::TouchscreenDelegateImpl(
- scoped_ptr<TouchscreenDeviceManager> touch_device_manager)
- : touch_device_manager_(touch_device_manager.Pass()) {}
+TouchscreenDelegateImpl::TouchscreenDelegateImpl() {
+}
TouchscreenDelegateImpl::~TouchscreenDelegateImpl() {}
void TouchscreenDelegateImpl::AssociateTouchscreens(
std::vector<DisplayConfigurator::DisplayState>* displays) {
std::set<int> no_match_touchscreen;
- std::vector<TouchscreenDevice> devices = touch_device_manager_->GetDevices();
+ std::vector<TouchscreenDevice> devices =
Daniel Erat 2014/09/10 19:12:50 oh, and if you don't actually need to make a copy
dnicoara 2014/09/10 19:24:25 Done.
+ DeviceDataManager::GetInstance()->touchscreen_devices();
int internal_touchscreen = -1;
for (size_t i = 0; i < devices.size(); ++i) {

Powered by Google App Engine
This is Rietveld 408576698