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