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

Side by Side Diff: chrome/browser/chromeos/system/fake_input_device_settings.h

Issue 2006083002: Use fake Input Device Settings with chrome://device-emulator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DevicePageTestsFixes
Patch Set: cleanup Created 4 years, 5 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 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 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/chromeos/system/input_device_settings.h" 10 #include "chrome/browser/chromeos/system/input_device_settings.h"
(...skipping 15 matching lines...) Expand all
26 void SetThreeFingerClick(bool enabled) override; 26 void SetThreeFingerClick(bool enabled) override;
27 void SetTapDragging(bool enabled) override; 27 void SetTapDragging(bool enabled) override;
28 void MouseExists(const DeviceExistsCallback& callback) override; 28 void MouseExists(const DeviceExistsCallback& callback) override;
29 void UpdateMouseSettings(const MouseSettings& settings) override; 29 void UpdateMouseSettings(const MouseSettings& settings) override;
30 void SetMouseSensitivity(int value) override; 30 void SetMouseSensitivity(int value) override;
31 void SetPrimaryButtonRight(bool right) override; 31 void SetPrimaryButtonRight(bool right) override;
32 void SetNaturalScroll(bool enabled) override; 32 void SetNaturalScroll(bool enabled) override;
33 void ReapplyTouchpadSettings() override; 33 void ReapplyTouchpadSettings() override;
34 void ReapplyMouseSettings() override; 34 void ReapplyMouseSettings() override;
35 35
36 void SetMouseExists(bool exists);
37 void SetTouchpadExists(bool exists);
stevenjb 2016/06/30 00:17:30 Inline these and name them set_mouse_exists, etc.
michaelpg 2016/07/01 22:01:48 Done.
38
36 const TouchpadSettings& current_touchpad_settings() const { 39 const TouchpadSettings& current_touchpad_settings() const {
37 return current_touchpad_settings_; 40 return current_touchpad_settings_;
38 } 41 }
39 42
40 const MouseSettings& current_mouse_settings() const { 43 const MouseSettings& current_mouse_settings() const {
41 return current_mouse_settings_; 44 return current_mouse_settings_;
42 } 45 }
43 46
44 private: 47 private:
45 TouchpadSettings current_touchpad_settings_; 48 TouchpadSettings current_touchpad_settings_;
46 MouseSettings current_mouse_settings_; 49 MouseSettings current_mouse_settings_;
47 50
51 bool mouse_exists_;
52 bool touchpad_exists_;
53
48 DISALLOW_COPY_AND_ASSIGN(FakeInputDeviceSettings); 54 DISALLOW_COPY_AND_ASSIGN(FakeInputDeviceSettings);
49 }; 55 };
50 56
51 } // namespace system 57 } // namespace system
52 } // namespace chromeos 58 } // namespace chromeos
53 59
54 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_ 60 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_FAKE_INPUT_DEVICE_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698