X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchromeos%2Fime%2Fxkeyboard.h;h=93a4580fa333ef72d6510248de02b7b1f85b5957;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=b2f48e0b840dbf588712cebecd9d1c2d87bade1a;hpb=4b53d56b8a1db20d4089f6d4f37126d43f907125;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chromeos/ime/xkeyboard.h b/src/chromeos/ime/xkeyboard.h index b2f48e0..93a4580 100644 --- a/src/chromeos/ime/xkeyboard.h +++ b/src/chromeos/ime/xkeyboard.h @@ -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.