Bug 737675 - Implement -moz-touch-enabled for Android and Gonk. r=mwu
authorJared Wein <jwein@mozilla.com>
Tue, 20 Mar 2012 16:44:43 -0700
changeset 89883 d921f78892f512a8a89cd6dd6dea55664c0d43e5
parent 89882 60c19ec121f7a6413692a4ca69b2a02ba0246512
child 89884 bf13c225305523d1bb30d429809a0883527bd93a
push id7361
push userjwein@mozilla.com
push dateTue, 20 Mar 2012 23:44:55 +0000
treeherdermozilla-inbound@d921f78892f5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmwu
bugs737675
milestone14.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 737675 - Implement -moz-touch-enabled for Android and Gonk. r=mwu
widget/android/nsLookAndFeel.cpp
widget/gonk/nsLookAndFeel.cpp
--- a/widget/android/nsLookAndFeel.cpp
+++ b/widget/android/nsLookAndFeel.cpp
@@ -418,18 +418,21 @@ nsLookAndFeel::GetIntImpl(IntID aID, PRI
         case eIntID_ScrollArrowStyle:
             aResult = eScrollArrowStyle_Single;
             break;
 
         case eIntID_ScrollSliderStyle:
             aResult = eScrollThumbStyle_Proportional;
             break;
 
+        case eIntID_TouchEnabled:
+            aResult = 1;
+            break;
+
         case eIntID_WindowsDefaultTheme:
-        case eIntID_TouchEnabled:
         case eIntID_MaemoClassic:
         case eIntID_WindowsThemeIdentifier:
             aResult = 0;
             rv = NS_ERROR_NOT_IMPLEMENTED;
             break;
 
         case eIntID_SpellCheckerUnderlineStyle:
             aResult = NS_STYLE_TEXT_DECORATION_STYLE_WAVY;
--- a/widget/gonk/nsLookAndFeel.cpp
+++ b/widget/gonk/nsLookAndFeel.cpp
@@ -362,18 +362,21 @@ nsLookAndFeel::GetIntImpl(IntID aID, PRI
         case eIntID_ScrollArrowStyle:
             aResult = eScrollArrowStyle_Single;
             break;
 
         case eIntID_ScrollSliderStyle:
             aResult = eScrollThumbStyle_Proportional;
             break;
 
+        case eIntID_TouchEnabled:
+            aResult = 1;
+            break;
+
         case eIntID_WindowsDefaultTheme:
-        case eIntID_TouchEnabled:
         case eIntID_MaemoClassic:
         case eIntID_WindowsThemeIdentifier:
             aResult = 0;
             rv = NS_ERROR_NOT_IMPLEMENTED;
             break;
 
         case eIntID_SpellCheckerUnderlineStyle:
             aResult = NS_STYLE_TEXT_DECORATION_STYLE_WAVY;