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

Side by Side Diff: content/browser/renderer_host/input/touch_event_queue.cc

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/renderer_host/input/touch_event_queue.h" 5 #include "content/browser/renderer_host/input/touch_event_queue.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/metrics/histogram_macros.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/trace_event/trace_event.h" 13 #include "base/trace_event/trace_event.h"
14 #include "content/browser/renderer_host/input/timeout_monitor.h" 14 #include "content/browser/renderer_host/input/timeout_monitor.h"
15 #include "content/common/input/web_touch_event_traits.h" 15 #include "content/public/common/input/web_touch_event_traits.h"
16 #include "ui/gfx/geometry/point_f.h" 16 #include "ui/gfx/geometry/point_f.h"
17 17
18 using blink::WebInputEvent; 18 using blink::WebInputEvent;
19 using blink::WebTouchEvent; 19 using blink::WebTouchEvent;
20 using blink::WebTouchPoint; 20 using blink::WebTouchPoint;
21 using ui::LatencyInfo; 21 using ui::LatencyInfo;
22 22
23 namespace content { 23 namespace content {
24 namespace { 24 namespace {
25 25
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 if (ack_result == INPUT_EVENT_ACK_STATE_CONSUMED) 878 if (ack_result == INPUT_EVENT_ACK_STATE_CONSUMED)
879 send_touch_events_async_ = false; 879 send_touch_events_async_ = false;
880 has_handler_for_current_sequence_ |= 880 has_handler_for_current_sequence_ |=
881 ack_result != INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; 881 ack_result != INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS;
882 } else if (WebTouchEventTraits::IsTouchSequenceEnd(event)) { 882 } else if (WebTouchEventTraits::IsTouchSequenceEnd(event)) {
883 has_handler_for_current_sequence_ = false; 883 has_handler_for_current_sequence_ = false;
884 } 884 }
885 } 885 }
886 886
887 } // namespace content 887 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698