Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chromeos / ime / xkeyboard.h
index b2f48e0..93a4580 100644 (file)
@@ -101,14 +101,12 @@ class CHROMEOS_EXPORT XKeyboard {
 
   // Turns on and off the auto-repeat of the keyboard. Returns true on success.
   // Do not call the function from non-UI threads.
-  // TODO(yusukes): Make this function non-static so we can mock it.
-  static CHROMEOS_EXPORT bool SetAutoRepeatEnabled(bool enabled);
+  virtual bool SetAutoRepeatEnabled(bool enabled) = 0;
 
   // Sets the auto-repeat rate of the keyboard, initial delay in ms, and repeat
   // interval in ms.  Returns true on success. Do not call the function from
   // non-UI threads.
-  // TODO(yusukes): Make this function non-static so we can mock it.
-  static CHROMEOS_EXPORT bool SetAutoRepeatRate(const AutoRepeatRate& rate);
+  virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) = 0;
 
   // Returns true if auto repeat is enabled. This function is protected: for
   // testability.