diff --git a/browser/metro/base/content/helperui/MenuUI.js b/browser/metro/base/content/helperui/MenuUI.js index 3aa9a497de1..e1fcdb38d11 100644 --- a/browser/metro/base/content/helperui/MenuUI.js +++ b/browser/metro/base/content/helperui/MenuUI.js @@ -378,13 +378,6 @@ MenuPopup.prototype = { let screenWidth = ContentAreaObserver.width; let screenHeight = ContentAreaObserver.height; - // Add padding on the side of the menu per the user's hand preference - let leftHand = - Services.metro.handPreference == Ci.nsIWinMetroUtils.handPreferenceLeft; - if (aSource && aSource == Ci.nsIDOMMouseEvent.MOZ_SOURCE_TOUCH) { - this.commands.setAttribute("left-hand", leftHand); - } - if (aPositionOptions.rightAligned) aX -= width; diff --git a/browser/metro/theme/platform.css b/browser/metro/theme/platform.css index 098581cc48e..250109203c4 100644 --- a/browser/metro/theme/platform.css +++ b/browser/metro/theme/platform.css @@ -207,11 +207,7 @@ menulist { color: white; } -.menu-popup > richlistbox[left-hand="true"] > richlistitem { - padding-left: 50px; -} - -.menu-popup > richlistbox[left-hand="false"] > richlistitem { +.menu-popup > richlistbox > richlistitem { padding-right: 50px; } diff --git a/widget/nsIWinMetroUtils.idl b/widget/nsIWinMetroUtils.idl index 58a1a12ed3b..7e5d0d415f9 100644 --- a/widget/nsIWinMetroUtils.idl +++ b/widget/nsIWinMetroUtils.idl @@ -12,24 +12,15 @@ * implementation of this interface for non-Windows systems, for testing and * development purposes only. */ -[scriptable, uuid(25524bde-8b30-4b49-8d67-7070c790aada)] +[scriptable, uuid(496b4450-5757-40f7-aeb9-a958ae86dbd1)] interface nsIWinMetroUtils : nsISupports { - /* return constants for the handPreference property */ - const long handPreferenceLeft = 0; - const long handPreferenceRight = 1; - /** * Determine if the current browser is running in the metro immersive * environment. */ readonly attribute boolean immersive; - /** - * Determine if the user prefers left handed or right handed input. - */ - readonly attribute long handPreference; - /** * Determine the activation URI */ diff --git a/widget/windows/winrt/nsWinMetroUtils.cpp b/widget/windows/winrt/nsWinMetroUtils.cpp index f7df1cdbd2f..091013f698a 100644 --- a/widget/windows/winrt/nsWinMetroUtils.cpp +++ b/widget/windows/winrt/nsWinMetroUtils.cpp @@ -384,27 +384,6 @@ nsWinMetroUtils::GetImmersive(bool *aImersive) return NS_OK; } -NS_IMETHODIMP -nsWinMetroUtils::GetHandPreference(int32_t *aHandPreference) -{ - if (XRE_GetWindowsEnvironment() == WindowsEnvironmentType_Desktop) { - *aHandPreference = nsIWinMetroUtils::handPreferenceRight; - return NS_OK; - } - - ComPtr uiSettings; - AssertRetHRESULT(ActivateGenericInstance(RuntimeClass_Windows_UI_ViewManagement_UISettings, uiSettings), NS_ERROR_UNEXPECTED); - - HandPreference value; - uiSettings->get_HandPreference(&value); - if (value == HandPreference::HandPreference_LeftHanded) - *aHandPreference = nsIWinMetroUtils::handPreferenceLeft; - else - *aHandPreference = nsIWinMetroUtils::handPreferenceRight; - - return NS_OK; -} - NS_IMETHODIMP nsWinMetroUtils::GetActivationURI(nsAString &aActivationURI) {