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

Side by Side Diff: chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc

Issue 2585633004: ozone: Allow ozone evdev/kvm features to be enabled without running on ChromeOS. (Closed)
Patch Set: fix bad rebase Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/system/input_device_settings.h" 5 #include "chrome/browser/chromeos/system/input_device_settings.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 #include "chrome/browser/chromeos/system/fake_input_device_settings.h" 9 #include "chrome/browser/chromeos/system/fake_input_device_settings.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 void InputDeviceSettingsImplOzone::SetTouchscreensEnabled(bool enabled) { 159 void InputDeviceSettingsImplOzone::SetTouchscreensEnabled(bool enabled) {
160 input_controller_->SetTouchscreensEnabled(enabled); 160 input_controller_->SetTouchscreensEnabled(enabled);
161 } 161 }
162 162
163 } // namespace 163 } // namespace
164 164
165 // static 165 // static
166 InputDeviceSettings* InputDeviceSettings::Get() { 166 InputDeviceSettings* InputDeviceSettings::Get() {
167 if (!g_instance) { 167 if (!g_instance) {
168 if (base::SysInfo::IsRunningOnChromeOS()) 168 if (base::SysInfo::IsRunningAsSystemCompositor())
169 g_instance = new InputDeviceSettingsImplOzone; 169 g_instance = new InputDeviceSettingsImplOzone;
170 else 170 else
171 g_instance = new FakeInputDeviceSettings(); 171 g_instance = new FakeInputDeviceSettings();
172 } 172 }
173 return g_instance; 173 return g_instance;
174 } 174 }
175 175
176 } // namespace system 176 } // namespace system
177 } // namespace chromeos 177 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698