Skip to content

Commit

Permalink
Bug 1702756 - Remove unused IntID::TouchEnabled. r=mstange
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Apr 2, 2021
1 parent 995df23 commit f33b2ec
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 46 deletions.
57 changes: 24 additions & 33 deletions widget/LookAndFeel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,

Expand Down
4 changes: 0 additions & 4 deletions widget/android/nsLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion widget/cocoa/nsLookAndFeel.mm
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ static nscolor GetColorFromNSColorWithAlpha(NSColor* aColor, float alpha) {
case IntID::DWMCompositor:
case IntID::WindowsClassic:
case IntID::WindowsDefaultTheme:
case IntID::TouchEnabled:
case IntID::WindowsThemeIdentifier:
case IntID::OperatingSystemVersionIdentifier:
aResult = 0;
Expand Down
3 changes: 0 additions & 3 deletions widget/gtk/nsLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion widget/headless/HeadlessLookAndFeelGTK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion widget/uikit/nsLookAndFeel.mm
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ static nscolor GetColorFromUIColor(UIColor* aColor) {
case IntID::DWMCompositor:
case IntID::WindowsClassic:
case IntID::WindowsDefaultTheme:
case IntID::TouchEnabled:
aResult = 0;
res = NS_ERROR_NOT_IMPLEMENTED;
break;
Expand Down
3 changes: 0 additions & 3 deletions widget/windows/nsLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f33b2ec

Please sign in to comment.