Bug 1702756 - Remove unused IntID::TouchEnabled. r=mstange

Differential Revision: https://phabricator.services.mozilla.com/D110670
This commit is contained in:
Emilio Cobos Álvarez 2021-04-02 16:34:32 +00:00
Родитель f24e678083
Коммит 1b5a185787
7 изменённых файлов: 24 добавлений и 46 удалений

Просмотреть файл

@ -139,15 +139,6 @@ class LookAndFeel {
*/
WindowsGlass,
/*
* A Boolean value to determine whether the device is a touch enabled
* device. Currently this is only supported by the Windows 7 Touch API.
*
* Platforms that do not support this metric should return
* NS_ERROR_NOT_IMPLEMENTED when queried for this metric.
*/
TouchEnabled,
/*
* A Boolean value to determine whether the Mac graphite theme is
* being used.
@ -284,6 +275,30 @@ class LookAndFeel {
*/
GTKCSDCloseButton,
/**
* An Integer value that will represent the position of the Minimize button
* in GTK Client side decoration header. Its value will be between 0 and 2
* if it is on the left side of the tabbar, otherwise it will be between
* 3 and 5.
*/
GTKCSDMinimizeButtonPosition,
/**
* An Integer value that will represent the position of the Maximize button
* in GTK Client side decoration header. Its value will be between 0 and 2
* if it is on the left side of the tabbar, otherwise it will be between
* 3 and 5.
*/
GTKCSDMaximizeButtonPosition,
/**
* An Integer value that will represent the position of the Close button
* in GTK Client side decoration header. Its value will be between 0 and 2
* if it is on the left side of the tabbar, otherwise it will be between
* 3 and 5.
*/
GTKCSDCloseButtonPosition,
/*
* A boolean value indicating whether titlebar buttons are located
* in left titlebar corner.
@ -318,30 +333,6 @@ class LookAndFeel {
* 'Coarse | Fine | Hover'.
*/
AllPointerCapabilities,
/**
* An Integer value that will represent the position of the Close button
* in GTK Client side decoration header. Its value will be between 0 and 2
* if it is on the left side of the tabbar, otherwise it will be between
* 3 and 5.
*/
GTKCSDCloseButtonPosition,
/**
* An Integer value that will represent the position of the Minimize button
* in GTK Client side decoration header. Its value will be between 0 and 2
* if it is on the left side of the tabbar, otherwise it will be between
* 3 and 5.
*/
GTKCSDMinimizeButtonPosition,
/**
* An Integer value that will represent the position of the Maximize button
* in GTK Client side decoration header. Its value will be between 0 and 2
* if it is on the left side of the tabbar, otherwise it will be between
* 3 and 5.
*/
GTKCSDMaximizeButtonPosition,
/** The vertical scrollbar width, in CSS pixels. */
SystemVerticalScrollbarWidth,

Просмотреть файл

@ -358,10 +358,6 @@ nsresult nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
aResult = eScrollThumbStyle_Proportional;
break;
case IntID::TouchEnabled:
aResult = 1;
break;
case IntID::WindowsDefaultTheme:
case IntID::WindowsThemeIdentifier:
case IntID::OperatingSystemVersionIdentifier:

Просмотреть файл

@ -470,7 +470,6 @@ nsresult nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
case IntID::DWMCompositor:
case IntID::WindowsClassic:
case IntID::WindowsDefaultTheme:
case IntID::TouchEnabled:
case IntID::WindowsThemeIdentifier:
case IntID::OperatingSystemVersionIdentifier:
aResult = 0;

Просмотреть файл

@ -673,9 +673,6 @@ nsresult nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
aResult = 0;
res = NS_ERROR_NOT_IMPLEMENTED;
break;
case IntID::TouchEnabled:
aResult = mozilla::widget::WidgetUtils::IsTouchDeviceSupportPresent();
break;
case IntID::MacGraphiteTheme:
aResult = 0;
res = NS_ERROR_NOT_IMPLEMENTED;

Просмотреть файл

@ -215,7 +215,6 @@ nsresult HeadlessLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
aResult = 0;
res = NS_ERROR_FAILURE;
break;
case IntID::TouchEnabled:
case IntID::MacGraphiteTheme:
case IntID::MacBigSurTheme:
aResult = 0;

Просмотреть файл

@ -322,7 +322,6 @@ nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
case IntID::DWMCompositor:
case IntID::WindowsClassic:
case IntID::WindowsDefaultTheme:
case IntID::TouchEnabled:
aResult = 0;
res = NS_ERROR_NOT_IMPLEMENTED;
break;

Просмотреть файл

@ -458,9 +458,6 @@ nsresult nsLookAndFeel::NativeGetInt(IntID aID, int32_t& aResult) {
case IntID::WindowsClassic:
aResult = !nsUXThemeData::IsAppThemed();
break;
case IntID::TouchEnabled:
aResult = WinUtils::IsTouchDeviceSupportPresent();
break;
case IntID::WindowsDefaultTheme:
if (XRE_IsContentProcess()) {
aResult = mUseDefaultTheme;