Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: components/test_runner/event_sender.cc

Issue 1403893003: Plumb gesture source value through Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments: never use uninitialized, track fling source device. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/test_runner/event_sender.h" 5 #include "components/test_runner/event_sender.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 break; 1650 break;
1651 } 1651 }
1652 } 1652 }
1653 delegate_->PrintMessage(std::string("Filename being dragged: ") + 1653 delegate_->PrintMessage(std::string("Filename being dragged: ") +
1654 filename.utf8().data() + "\n"); 1654 filename.utf8().data() + "\n");
1655 } 1655 }
1656 1656
1657 void EventSender::GestureFlingCancel() { 1657 void EventSender::GestureFlingCancel() {
1658 WebGestureEvent event; 1658 WebGestureEvent event;
1659 event.type = WebInputEvent::GestureFlingCancel; 1659 event.type = WebInputEvent::GestureFlingCancel;
1660 event.sourceDevice = blink::WebGestureDeviceTouchpad;
tdresser 2015/10/14 17:18:56 In an ideal world I think we'd have GestureFlingCa
wjmaclean 2015/10/14 18:03:28 I'll add a not for now. It's a bunch of additional
1660 event.timeStampSeconds = GetCurrentEventTimeSec(); 1661 event.timeStampSeconds = GetCurrentEventTimeSec();
1661 1662
1662 if (force_layout_on_events_) 1663 if (force_layout_on_events_)
1663 view_->layout(); 1664 view_->layout();
1664 1665
1665 HandleInputEventOnViewOrPopup(event); 1666 HandleInputEventOnViewOrPopup(event);
1666 } 1667 }
1667 1668
1668 void EventSender::GestureFlingStart(float x, 1669 void EventSender::GestureFlingStart(float x,
1669 float y, 1670 float y,
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 last_event_timestamp_ = event.timeStampSeconds; 2522 last_event_timestamp_ = event.timeStampSeconds;
2522 2523
2523 if (WebPagePopup* popup = view_->pagePopup()) { 2524 if (WebPagePopup* popup = view_->pagePopup()) {
2524 if (!WebInputEvent::isKeyboardEventType(event.type)) 2525 if (!WebInputEvent::isKeyboardEventType(event.type))
2525 return popup->handleInputEvent(event); 2526 return popup->handleInputEvent(event);
2526 } 2527 }
2527 return view_->handleInputEvent(event); 2528 return view_->handleInputEvent(event);
2528 } 2529 }
2529 2530
2530 } // namespace test_runner 2531 } // namespace test_runner
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | content/renderer/input/input_handler_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698