Unverified Commit 4b4783d1 authored by Xilai Zhang's avatar Xilai Zhang Committed by GitHub

[flutter roll] Revert both #117338 and #117547 (#117557)

* Revert "Exposed tooltip longPress action when available (#117338)"

This reverts commit 38e3930f.

* Revert "fixes android_semantics_integration_test to expect long press for tootip"
parent b3c321f1
......@@ -439,7 +439,6 @@ void main() {
ignoredActions: ignoredAccessibilityFocusActions,
actions: <AndroidSemanticsAction>[
AndroidSemanticsAction.click,
AndroidSemanticsAction.longClick,
],
),
);
......
......@@ -751,7 +751,7 @@ class TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {
behavior: HitTestBehavior.opaque,
onLongPress: (_triggerMode == TooltipTriggerMode.longPress) ? _handlePress : null,
onTap: (_triggerMode == TooltipTriggerMode.tap) ? _handleTap : null,
excludeFromSemantics: _excludeFromSemantics,
excludeFromSemantics: true,
child: result,
);
// Only check for hovering if there is a mouse connected.
......
......@@ -172,7 +172,6 @@ void main() {
hasEnabledState: true,
isEnabled: true,
hasTapAction: true,
hasLongPressAction: true,
isFocusable: true,
));
handle.dispose();
......@@ -217,7 +216,6 @@ void main() {
hasEnabledState: true,
isEnabled: true,
hasTapAction: true,
hasLongPressAction: true,
isFocusable: true,
));
handle.dispose();
......
......@@ -672,7 +672,6 @@ void main() {
tooltip: 'Previous month',
isButton: true,
hasTapAction: true,
hasLongPressAction: true,
isEnabled: true,
hasEnabledState: true,
isFocusable: true,
......@@ -681,7 +680,6 @@ void main() {
tooltip: 'Next month',
isButton: true,
hasTapAction: true,
hasLongPressAction: true,
isEnabled: true,
hasEnabledState: true,
isFocusable: true,
......
......@@ -2047,10 +2047,7 @@ void main() {
children: <TestSemantics>[
TestSemantics(
tooltip: 'Delete',
actions: <SemanticsAction>[
SemanticsAction.tap,
SemanticsAction.longPress
],
actions: <SemanticsAction>[SemanticsAction.tap],
textDirection: TextDirection.ltr,
flags: <SemanticsFlag>[
SemanticsFlag.isButton,
......
......@@ -833,7 +833,6 @@ void main() {
tooltip: 'Switch to input',
isButton: true,
hasTapAction: true,
hasLongPressAction: true,
isEnabled: true,
hasEnabledState: true,
isFocusable: true,
......@@ -877,7 +876,6 @@ void main() {
tooltip: 'Switch to calendar',
isButton: true,
hasTapAction: true,
hasLongPressAction: true,
isEnabled: true,
hasEnabledState: true,
isFocusable: true,
......
......@@ -700,7 +700,6 @@ void main() {
tooltip: 'Add Photo',
actions: <SemanticsAction>[
SemanticsAction.tap,
SemanticsAction.longPress,
],
flags: <SemanticsFlag>[
SemanticsFlag.hasEnabledState,
......
......@@ -620,10 +620,7 @@ void main() {
SemanticsFlag.isEnabled,
SemanticsFlag.isFocusable,
],
actions: <SemanticsAction>[
SemanticsAction.tap,
SemanticsAction.longPress,
],
actions: <SemanticsAction>[SemanticsAction.tap],
tooltip: 'Back',
textDirection: TextDirection.ltr,
),
......
......@@ -1420,9 +1420,6 @@ void main() {
id: 1,
tooltip: 'TIP',
textDirection: TextDirection.ltr,
actions: <SemanticsAction>[
SemanticsAction.longPress,
],
),
],
);
......@@ -1623,9 +1620,6 @@ void main() {
tooltip: 'Foo',
label: 'Bar',
textDirection: TextDirection.ltr,
actions: <SemanticsAction>[
SemanticsAction.longPress,
],
),
],
),
......
......@@ -1075,9 +1075,6 @@ void main() {
tooltip: 'Foo',
label: 'Bar',
textDirection: TextDirection.ltr,
actions: <SemanticsAction>[
SemanticsAction.longPress,
],
),
],
),
......@@ -1121,9 +1118,6 @@ void main() {
tooltip: 'Foo',
label: 'Bar',
textDirection: TextDirection.ltr,
actions: <SemanticsAction>[
SemanticsAction.longPress,
],
),
],
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment