Skip to content

Commit bedd695

Browse files
nhirokiCommit bot
authored andcommitted
Revert of Clean up GestureEventDetails constructors (patchset #4 id:100001 of https://codereview.chromium.org/565583005/)
Reason for revert: This seems to fail the following tests in "athena_unittests" on "Linux ChromiumOS Tests (dbg)(3)" - HomeCardGestureManagerTest.Basic - HomeCardGestureManagerTest.StartCentered http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%283%29/builds/36778 Original issue's description: > Clean up GestureEventDetails' constructors. > > In one of the GestureEventDetails' constructors, the arguments > delta_x, delta_y sometime are not used, so we should make a new > constructor which only takes one argument EventType. > > BUG=350942 > > Committed: https://crrev.com/b5e408e7bffd3d1e6b60612f65c0538a90329c59 > Cr-Commit-Position: refs/heads/master@{#294760} [email protected],[email protected],[email protected],[email protected],[email protected] NOTREECHECKS=true NOTRY=true BUG=350942 Review URL: https://codereview.chromium.org/572593002 Cr-Commit-Position: refs/heads/master@{#294776}
1 parent a9e9f87 commit bedd695

30 files changed

+216
-171
lines changed

ash/drag_drop/drag_drop_controller.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ gfx::Rect AdjustDragImageBoundsForScaleAndOffset(
6464

6565
void DispatchGestureEndToWindow(aura::Window* window) {
6666
if (window && window->delegate()) {
67-
ui::GestureEvent gesture_end(0,
68-
0,
69-
0,
70-
ui::EventTimeForNow(),
71-
ui::GestureEventDetails(ui::ET_GESTURE_END));
67+
ui::GestureEvent gesture_end(
68+
0,
69+
0,
70+
0,
71+
ui::EventTimeForNow(),
72+
ui::GestureEventDetails(ui::ET_GESTURE_END, 0, 0));
7273
window->delegate()->OnGestureEvent(&gesture_end);
7374
}
7475
}

ash/drag_drop/drag_drop_controller_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void AddViewToWidgetAndResize(views::Widget* widget, views::View* view) {
273273
}
274274

275275
void DispatchGesture(ui::EventType gesture_type, gfx::Point location) {
276-
ui::GestureEventDetails event_details(gesture_type);
276+
ui::GestureEventDetails event_details(gesture_type, 0, 0);
277277
event_details.set_oldest_touch_id(1);
278278
ui::GestureEvent gesture_event(
279279
location.x(), location.y(), 0, ui::EventTimeForNow(), event_details);

ash/shelf/shelf_tooltip_manager_unittest.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,9 @@ TEST_F(ShelfTooltipManagerTest, ShouldHideForEvents) {
207207

208208
// Should hide for gesture events.
209209
ui::GestureEvent gesture_event(
210-
0,
211-
0,
212-
ui::EF_NONE,
210+
0, 0, ui::EF_NONE,
213211
base::TimeDelta::FromMilliseconds(base::Time::Now().ToDoubleT() * 1000),
214-
ui::GestureEventDetails(ui::ET_GESTURE_BEGIN));
212+
ui::GestureEventDetails(ui::ET_GESTURE_BEGIN, 0.0f, 0.0f));
215213
SetEventTarget(tooltip_widget->GetNativeWindow(), &gesture_event);
216214
event_handler->OnGestureEvent(&gesture_event);
217215
EXPECT_FALSE(gesture_event.handled());

ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ TEST_F(TrayRotationLockTest, PerformActionOnDefaultView) {
209209
EnableMaximizeModeWindowManager(true);
210210
ASSERT_FALSE(tray_view()->visible());
211211

212-
ui::GestureEvent tap(
213-
0, 0, 0, base::TimeDelta(), ui::GestureEventDetails(ui::ET_GESTURE_TAP));
212+
ui::GestureEvent tap(0, 0, 0, base::TimeDelta(),
213+
ui::GestureEventDetails(ui::ET_GESTURE_TAP, 0.0f, 0.0f));
214214
default_view()->OnGestureEvent(&tap);
215215
EXPECT_TRUE(maximize_mode_controller->rotation_locked());
216216
EXPECT_TRUE(tray_view()->visible());

ash/system/overview/overview_button_tray_unittest.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ TEST_F(OverviewButtonTrayTest, PerformAction) {
7878
// Overview Mode only works when there is a window
7979
scoped_ptr<aura::Window> window(
8080
CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20)));
81-
ui::GestureEvent tap(
82-
0, 0, 0, base::TimeDelta(), ui::GestureEventDetails(ui::ET_GESTURE_TAP));
81+
ui::GestureEvent tap(0, 0, 0, base::TimeDelta(),
82+
ui::GestureEventDetails(ui::ET_GESTURE_TAP, 0.0f, 0.0f));
8383
GetTray()->PerformAction(tap);
8484
EXPECT_TRUE(Shell::GetInstance()->window_selector_controller()->
8585
IsSelecting());

chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class AutofillPopupBaseViewTest : public InProcessBrowserTest {
6363
point.y(),
6464
0,
6565
ui::EventTimeForNow(),
66-
ui::GestureEventDetails(type));
66+
ui::GestureEventDetails(type, 0, 0));
6767
}
6868

6969
void SimulateGesture(ui::GestureEvent* event) {

chrome/browser/ui/views/desktop_media_picker_views_unittest.cc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,13 @@ TEST_F(DesktopMediaPickerViewsTest, DoneCallbackCalledOnDoubleTap) {
126126
content::DesktopMediaID::TYPE_WINDOW, kFakeId)));
127127

128128
media_list_->AddSource(kFakeId);
129-
ui::GestureEventDetails details(ui::ET_GESTURE_TAP);
130-
details.set_tap_count(2);
131-
ui::GestureEvent double_tap(10, 10, 0, base::TimeDelta(), details);
129+
130+
ui::GestureEvent double_tap(
131+
10,
132+
10,
133+
0,
134+
base::TimeDelta(),
135+
ui::GestureEventDetails(ui::ET_GESTURE_TAP, 2, 0));
132136

133137
GetPickerDialogView()->GetMediaSourceViewForTesting(0)->OnGestureEvent(
134138
&double_tap);

chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -335,16 +335,17 @@ IN_PROC_BROWSER_TEST_F(TabDragControllerTest, GestureEndShouldEndDragTest) {
335335
tab_1_center.x(),
336336
0,
337337
base::TimeDelta(),
338-
ui::GestureEventDetails(ui::ET_GESTURE_TAP_DOWN));
338+
ui::GestureEventDetails(ui::ET_GESTURE_TAP_DOWN, 0.0f, 0.0f));
339339
tab_strip->MaybeStartDrag(tab1, gesture_tap_down,
340340
tab_strip->GetSelectionModel());
341341
EXPECT_TRUE(TabDragController::IsActive());
342342

343-
ui::GestureEvent gesture_end(tab_1_center.x(),
344-
tab_1_center.x(),
345-
0,
346-
base::TimeDelta(),
347-
ui::GestureEventDetails(ui::ET_GESTURE_END));
343+
ui::GestureEvent gesture_end(
344+
tab_1_center.x(),
345+
tab_1_center.x(),
346+
0,
347+
base::TimeDelta(),
348+
ui::GestureEventDetails(ui::ET_GESTURE_END, 0.0f, 0.0f));
348349
tab_strip->OnGestureEvent(&gesture_end);
349350
EXPECT_FALSE(TabDragController::IsActive());
350351
EXPECT_FALSE(tab_strip->IsDragSessionActive());

content/browser/renderer_host/input/gesture_text_selector_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class GestureTextSelectorTest : public testing::Test,
6161
base::TimeTicks event_time,
6262
float x,
6363
float y) {
64-
return GestureEventData(GestureEventDetails(type),
64+
return GestureEventData(GestureEventDetails(type, 0, 0),
6565
0,
6666
MotionEvent::TOOL_TYPE_FINGER,
6767
event_time,

content/browser/web_contents/touch_editable_impl_aura_browsertest.cc

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ IN_PROC_BROWSER_TEST_F(TouchEditableImplAuraTest,
207207
10,
208208
0,
209209
ui::EventTimeForNow(),
210-
ui::GestureEventDetails(ui::ET_GESTURE_LONG_PRESS));
210+
ui::GestureEventDetails(ui::ET_GESTURE_LONG_PRESS, 0, 0));
211211
touch_editable->Reset();
212212
rwhva->OnGestureEvent(&long_press);
213213
touch_editable->WaitForSelectionChangeCallback();
@@ -227,7 +227,7 @@ IN_PROC_BROWSER_TEST_F(TouchEditableImplAuraTest,
227227
10,
228228
0,
229229
ui::EventTimeForNow(),
230-
ui::GestureEventDetails(ui::ET_GESTURE_SCROLL_BEGIN));
230+
ui::GestureEventDetails(ui::ET_GESTURE_SCROLL_BEGIN, 0, 0));
231231
rwhva->OnGestureEvent(&scroll_begin);
232232
EXPECT_FALSE(GetTouchSelectionController(touch_editable));
233233

@@ -237,7 +237,7 @@ IN_PROC_BROWSER_TEST_F(TouchEditableImplAuraTest,
237237
10,
238238
0,
239239
ui::EventTimeForNow(),
240-
ui::GestureEventDetails(ui::ET_GESTURE_SCROLL_END));
240+
ui::GestureEventDetails(ui::ET_GESTURE_SCROLL_END, 0, 0));
241241
rwhva->OnGestureEvent(&scroll_end);
242242
EXPECT_TRUE(GetTouchSelectionController(touch_editable));
243243
}
@@ -262,7 +262,7 @@ IN_PROC_BROWSER_TEST_F(TouchEditableImplAuraTest,
262262
10,
263263
0,
264264
ui::EventTimeForNow(),
265-
ui::GestureEventDetails(ui::ET_GESTURE_LONG_PRESS));
265+
ui::GestureEventDetails(ui::ET_GESTURE_LONG_PRESS, 0, 0));
266266
touch_editable->Reset();
267267
rwhva->OnGestureEvent(&long_press);
268268
touch_editable->WaitForSelectionChangeCallback();
@@ -292,9 +292,12 @@ IN_PROC_BROWSER_TEST_F(TouchEditableImplAuraTest,
292292
EXPECT_EQ(GetRenderWidgetHostViewAura(touch_editable), rwhva);
293293

294294
// Double-tap to select word.
295-
ui::GestureEventDetails details(ui::ET_GESTURE_TAP);
296-
details.set_tap_count(2);
297-
ui::GestureEvent double_tap(10, 10, 0, ui::EventTimeForNow(), details);
295+
ui::GestureEvent double_tap(
296+
10,
297+
10,
298+
0,
299+
ui::EventTimeForNow(),
300+
ui::GestureEventDetails(ui::ET_GESTURE_TAP, 2, 0));
298301
touch_editable->Reset();
299302
rwhva->OnGestureEvent(&double_tap);
300303
touch_editable->WaitForSelectionChangeCallback();

ui/aura/remote_window_tree_host_win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ void RemoteWindowTreeHostWin::OnEdgeGesture() {
389389
0,
390390
0,
391391
ui::EventTimeForNow(),
392-
ui::GestureEventDetails(ui::ET_GESTURE_WIN8_EDGE_SWIPE));
392+
ui::GestureEventDetails(ui::ET_GESTURE_WIN8_EDGE_SWIPE, 0, 0));
393393
SendEventToProcessor(&event);
394394
}
395395

ui/aura/window_event_dispatcher_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ TEST_F(WindowEventDispatcherTest, RepostTapdownGestureTest) {
13221322
scoped_ptr<aura::Window> window(CreateTestWindowWithDelegate(
13231323
&delegate, 1, gfx::Rect(0, 0, 100, 100), root_window()));
13241324

1325-
ui::GestureEventDetails details(ui::ET_GESTURE_TAP_DOWN);
1325+
ui::GestureEventDetails details(ui::ET_GESTURE_TAP_DOWN, 0.0f, 0.0f);
13261326
gfx::Point point(10, 10);
13271327
ui::GestureEvent event(point.x(),
13281328
point.y(),

ui/events/gesture_detection/gesture_event_data.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ GestureEventData::GestureEventData(const GestureEventDetails& details,
3636

3737
GestureEventData::GestureEventData(EventType type,
3838
const GestureEventData& other)
39-
: details(type),
39+
: details(type, 0, 0),
4040
motion_event_id(other.motion_event_id),
4141
primary_tool_type(other.primary_tool_type),
4242
time(other.time),

ui/events/gesture_detection/gesture_event_data_packet_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const float kTouchX = 13.7f;
1616
const float kTouchY = 14.2f;
1717

1818
GestureEventData CreateGesture(EventType type) {
19-
return GestureEventData(GestureEventDetails(type),
19+
return GestureEventData(GestureEventDetails(type, 0, 0),
2020
0,
2121
MotionEvent::TOOL_TYPE_FINGER,
2222
base::TimeTicks(),

ui/events/gesture_detection/gesture_provider.cc

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ class GestureProvider::GestureListenerImpl
246246
: 1.0f - kDoubleTapDragZoomSpeed,
247247
std::abs(dy));
248248
}
249-
GestureEventDetails pinch_details(ET_GESTURE_PINCH_UPDATE);
250-
pinch_details.set_scale(scale);
249+
GestureEventDetails pinch_details(ET_GESTURE_PINCH_UPDATE, scale, 0);
251250
Send(CreateGesture(pinch_details,
252251
e.GetId(),
253252
e.GetToolType(),
@@ -264,7 +263,7 @@ class GestureProvider::GestureListenerImpl
264263

265264
// GestureDetector::GestureListener implementation.
266265
virtual bool OnDown(const MotionEvent& e) OVERRIDE {
267-
GestureEventDetails tap_details(ET_GESTURE_TAP_DOWN);
266+
GestureEventDetails tap_details(ET_GESTURE_TAP_DOWN, 0, 0);
268267
Send(CreateGesture(tap_details, e));
269268

270269
// Return true to indicate that we want to handle touch.
@@ -404,7 +403,7 @@ class GestureProvider::GestureListenerImpl
404403
}
405404

406405
virtual void OnShowPress(const MotionEvent& e) OVERRIDE {
407-
GestureEventDetails show_press_details(ET_GESTURE_SHOW_PRESS);
406+
GestureEventDetails show_press_details(ET_GESTURE_SHOW_PRESS, 0, 0);
408407
show_press_event_sent_ = true;
409408
Send(CreateGesture(show_press_details, e));
410409
}
@@ -434,7 +433,7 @@ class GestureProvider::GestureListenerImpl
434433
if (e.GetAction() == MotionEvent::ACTION_UP &&
435434
!current_longpress_time_.is_null() &&
436435
!IsScaleGestureDetectionInProgress()) {
437-
GestureEventDetails long_tap_details(ET_GESTURE_LONG_TAP);
436+
GestureEventDetails long_tap_details(ET_GESTURE_LONG_TAP, 0, 0);
438437
Send(CreateGesture(long_tap_details, e));
439438
return true;
440439
}
@@ -483,7 +482,7 @@ class GestureProvider::GestureListenerImpl
483482
virtual void OnLongPress(const MotionEvent& e) OVERRIDE {
484483
DCHECK(!IsDoubleTapInProgress());
485484
SetIgnoreSingleTap(true);
486-
GestureEventDetails long_press_details(ET_GESTURE_LONG_PRESS);
485+
GestureEventDetails long_press_details(ET_GESTURE_LONG_PRESS, 0, 0);
487486
Send(CreateGesture(long_press_details, e));
488487
}
489488

@@ -522,7 +521,7 @@ class GestureProvider::GestureListenerImpl
522521
size_t touch_point_count,
523522
const gfx::RectF& bounding_box,
524523
int flags) {
525-
return GestureEventData(GestureEventDetails(type),
524+
return GestureEventData(GestureEventDetails(type, 0, 0),
526525
motion_event_id,
527526
primary_tool_type,
528527
time,
@@ -551,16 +550,14 @@ class GestureProvider::GestureListenerImpl
551550
}
552551

553552
GestureEventData CreateGesture(EventType type, const MotionEvent& event) {
554-
return CreateGesture(GestureEventDetails(type), event);
553+
return CreateGesture(GestureEventDetails(type, 0, 0), event);
555554
}
556555

557556
GestureEventData CreateTapGesture(EventType type, const MotionEvent& event) {
558557
// Set the tap count to 1 even for ET_GESTURE_DOUBLE_TAP, in order to be
559558
// consistent with double tap behavior on a mobile viewport. See
560559
// crbug.com/234986 for context.
561-
GestureEventDetails details(type);
562-
details.set_tap_count(1);
563-
return CreateGesture(details, event);
560+
return CreateGesture(GestureEventDetails(type, 1, 0), event);
564561
}
565562

566563
gfx::RectF GetBoundingBox(const MotionEvent& event, EventType type) {

ui/events/gesture_detection/touch_disposition_gesture_filter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ GestureEventData CreateGesture(EventType type,
2121
const GestureEventDataPacket& packet) {
2222
// As the event is purely synthetic, we needn't be strict with event flags.
2323
int flags = EF_NONE;
24-
return GestureEventData(GestureEventDetails(type),
24+
return GestureEventData(GestureEventDetails(type, 0, 0),
2525
motion_event_id,
2626
primary_tool_type,
2727
packet.timestamp(),

ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class TouchDispositionGestureFilterTest
230230
float y,
231231
float diameter) {
232232
return GestureEventData(
233-
GestureEventDetails(type),
233+
GestureEventDetails(type, 0, 0),
234234
0,
235235
MotionEvent::TOOL_TYPE_FINGER,
236236
base::TimeTicks(),

ui/events/gesture_event_details.cc

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@ GestureEventDetails::GestureEventDetails()
1010
: type_(ET_UNKNOWN), touch_points_(0), oldest_touch_id_(-1) {
1111
}
1212

13-
GestureEventDetails::GestureEventDetails(ui::EventType type)
14-
: type_(type), touch_points_(1), oldest_touch_id_(-1) {
15-
DCHECK_GE(type, ET_GESTURE_TYPE_START);
16-
DCHECK_LE(type, ET_GESTURE_TYPE_END);
17-
}
18-
1913
GestureEventDetails::GestureEventDetails(ui::EventType type,
2014
float delta_x,
2115
float delta_y)
22-
: type_(type), touch_points_(1), oldest_touch_id_(-1) {
16+
: type_(type), touch_points_(1), oldest_touch_id_(0) {
2317
DCHECK_GE(type, ET_GESTURE_TYPE_START);
2418
DCHECK_LE(type, ET_GESTURE_TYPE_END);
2519
switch (type_) {
@@ -43,15 +37,31 @@ GestureEventDetails::GestureEventDetails(ui::EventType type,
4337
data.first_finger_enclosing_rectangle.height = delta_y;
4438
break;
4539

40+
case ui::ET_GESTURE_PINCH_UPDATE:
41+
data.scale = delta_x;
42+
CHECK_EQ(0.f, delta_y) << "Unknown data in delta_y for pinch";
43+
break;
44+
4645
case ui::ET_GESTURE_SWIPE:
4746
data.swipe.left = delta_x < 0;
4847
data.swipe.right = delta_x > 0;
4948
data.swipe.up = delta_y < 0;
5049
data.swipe.down = delta_y > 0;
5150
break;
5251

52+
case ui::ET_GESTURE_TAP:
53+
case ui::ET_GESTURE_DOUBLE_TAP:
54+
case ui::ET_GESTURE_TAP_UNCONFIRMED:
55+
data.tap_count = static_cast<int>(delta_x);
56+
CHECK_EQ(0.f, delta_y) << "Unknown data in delta_y for tap.";
57+
break;
58+
5359
default:
54-
NOTREACHED() << "Invalid event type for constructor: " << type;
60+
if (delta_x != 0.f || delta_y != 0.f) {
61+
DLOG(WARNING) << "A gesture event (" << type << ") had unknown data: ("
62+
<< delta_x << "," << delta_y;
63+
}
64+
break;
5565
}
5666
}
5767

ui/events/gesture_event_details.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ namespace ui {
1616
struct EVENTS_BASE_EXPORT GestureEventDetails {
1717
public:
1818
GestureEventDetails();
19-
explicit GestureEventDetails(EventType type);
2019
GestureEventDetails(EventType type, float delta_x, float delta_y);
2120

2221
EventType type() const { return type_; }
@@ -124,12 +123,6 @@ struct EVENTS_BASE_EXPORT GestureEventDetails {
124123
data.tap_count = tap_count;
125124
}
126125

127-
void set_scale(float scale) {
128-
DCHECK_GE(scale, 0.0f);
129-
DCHECK_EQ(type_, ET_GESTURE_PINCH_UPDATE);
130-
data.scale = scale;
131-
}
132-
133126
private:
134127
EventType type_;
135128
union Details {

ui/events/test/event_generator.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,11 @@ void EventGenerator::PressMoveAndReleaseTouchToCenterOf(EventTarget* window) {
248248

249249
void EventGenerator::GestureEdgeSwipe() {
250250
ui::GestureEvent gesture(
251-
0, 0, 0, Now(), ui::GestureEventDetails(ui::ET_GESTURE_WIN8_EDGE_SWIPE));
251+
0,
252+
0,
253+
0,
254+
Now(),
255+
ui::GestureEventDetails(ui::ET_GESTURE_WIN8_EDGE_SWIPE, 0, 0));
252256
Dispatch(&gesture);
253257
}
254258

ui/views/controls/button/custom_button_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class TestCustomButton : public CustomButton {
3636
};
3737

3838
void PerformGesture(CustomButton* button, ui::EventType event_type) {
39-
ui::GestureEventDetails gesture_details(event_type);
39+
ui::GestureEventDetails gesture_details(event_type, 0, 0);
4040
base::TimeDelta time_stamp = base::TimeDelta::FromMicroseconds(0);
4141
ui::GestureEvent gesture_event(0, 0, 0, time_stamp, gesture_details);
4242
button->OnGestureEvent(&gesture_event);

0 commit comments

Comments
 (0)