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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Created 4 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after
2808 void RenderViewImpl::OnDiscardInputEvent( 2808 void RenderViewImpl::OnDiscardInputEvent(
2809 const blink::WebInputEvent* input_event, 2809 const blink::WebInputEvent* input_event,
2810 const ui::LatencyInfo& latency_info, 2810 const ui::LatencyInfo& latency_info,
2811 InputEventDispatchType dispatch_type) { 2811 InputEventDispatchType dispatch_type) {
2812 if (!input_event || (dispatch_type != DISPATCH_TYPE_BLOCKING && 2812 if (!input_event || (dispatch_type != DISPATCH_TYPE_BLOCKING &&
2813 dispatch_type != DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN)) { 2813 dispatch_type != DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN)) {
2814 return; 2814 return;
2815 } 2815 }
2816 2816
2817 if (dispatch_type == DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN) { 2817 if (dispatch_type == DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN) {
2818 NotifyInputEventHandled(input_event->type, 2818 NotifyInputEventHandled(input_event->type(),
2819 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); 2819 INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
2820 } 2820 }
2821 2821
2822 std::unique_ptr<InputEventAck> ack( 2822 std::unique_ptr<InputEventAck> ack(
2823 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, 2823 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(),
2824 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); 2824 INPUT_EVENT_ACK_STATE_NOT_CONSUMED));
2825 OnInputEventAck(std::move(ack)); 2825 OnInputEventAck(std::move(ack));
2826 } 2826 }
2827 2827
2828 } // namespace content 2828 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698