| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_CROS_TOUCHPAD_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_TOUCHPAD_LIBRARY_H_ | 
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_TOUCHPAD_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_TOUCHPAD_LIBRARY_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include "cros/chromeos_touchpad.h" | 9 #include "third_party/cros/chromeos_touchpad.h" | 
| 10 | 10 | 
| 11 namespace chromeos { | 11 namespace chromeos { | 
| 12 | 12 | 
| 13 // This interface defines interaction with the ChromeOS synaptics library APIs. | 13 // This interface defines interaction with the ChromeOS synaptics library APIs. | 
| 14 // Users can get an instance of this library class like this: | 14 // Users can get an instance of this library class like this: | 
| 15 //   chromeos::CrosLibrary::Get()->GetTouchpadLibrary() | 15 //   chromeos::CrosLibrary::Get()->GetTouchpadLibrary() | 
| 16 class TouchpadLibrary { | 16 class TouchpadLibrary { | 
| 17  public: | 17  public: | 
| 18   virtual ~TouchpadLibrary() {} | 18   virtual ~TouchpadLibrary() {} | 
| 19   virtual void SetSensitivity(int value) = 0; | 19   virtual void SetSensitivity(int value) = 0; | 
| 20   virtual void SetTapToClick(bool enabled) = 0; | 20   virtual void SetTapToClick(bool enabled) = 0; | 
| 21 | 21 | 
| 22   // Factory function, creates a new instance and returns ownership. | 22   // Factory function, creates a new instance and returns ownership. | 
| 23   // For normal usage, access the singleton via CrosLibrary::Get(). | 23   // For normal usage, access the singleton via CrosLibrary::Get(). | 
| 24   static TouchpadLibrary* GetImpl(bool stub); | 24   static TouchpadLibrary* GetImpl(bool stub); | 
| 25 }; | 25 }; | 
| 26 | 26 | 
| 27 | 27 | 
| 28 }  // namespace chromeos | 28 }  // namespace chromeos | 
| 29 | 29 | 
| 30 #endif  // CHROME_BROWSER_CHROMEOS_CROS_TOUCHPAD_LIBRARY_H_ | 30 #endif  // CHROME_BROWSER_CHROMEOS_CROS_TOUCHPAD_LIBRARY_H_ | 
| OLD | NEW | 
|---|