Bug 816004 - Change password mask timer to 1.5s on Gonk. f=vingtetun r=mwu
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Thu, 29 Nov 2012 15:13:35 +0900
changeset 123565 aaf7922f91e3cadbc4a236942934eed52955e795
parent 123564 445dc074e609870fb32bb5da2263be63e35da659
child 123566 089e5412a83b43b595a0f150ddcfc6b2100c9d3c
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmwu
bugs816004
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 816004 - Change password mask timer to 1.5s on Gonk. f=vingtetun r=mwu
widget/gonk/nsLookAndFeel.cpp
widget/gonk/nsLookAndFeel.h
--- a/widget/gonk/nsLookAndFeel.cpp
+++ b/widget/gonk/nsLookAndFeel.cpp
@@ -387,8 +387,16 @@ nsLookAndFeel::GetFontImpl(FontID aID, n
     return true;
 }
 
 /*virtual*/
 bool
 nsLookAndFeel::GetEchoPasswordImpl() {
     return true;
 }
+
+/*virtual*/
+uint32_t
+nsLookAndFeel::GetPasswordMaskDelayImpl()
+{
+    // Same value on Android framework
+    return 1500;
+}
--- a/widget/gonk/nsLookAndFeel.h
+++ b/widget/gonk/nsLookAndFeel.h
@@ -24,14 +24,15 @@ class nsLookAndFeel : public nsXPLookAnd
 public:
     nsLookAndFeel();
     virtual ~nsLookAndFeel();
 
     virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle,
                              float aDevPixPerCSSPixel);
     virtual nsresult GetIntImpl(IntID aID, int32_t &aResult);
     virtual bool GetEchoPasswordImpl();
+    virtual uint32_t GetPasswordMaskDelayImpl();
 
 protected:
     virtual nsresult NativeGetColor(ColorID aID, nscolor &aColor);
 };
 
 #endif