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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Fixed compile failures. Created 3 years, 8 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 (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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) { 1008 void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) {
1009 ForwardMouseEventWithLatencyInfo(mouse_event, 1009 ForwardMouseEventWithLatencyInfo(mouse_event,
1010 ui::LatencyInfo(ui::SourceEventType::OTHER)); 1010 ui::LatencyInfo(ui::SourceEventType::OTHER));
1011 if (owner_delegate_) 1011 if (owner_delegate_)
1012 owner_delegate_->RenderWidgetDidForwardMouseEvent(mouse_event); 1012 owner_delegate_->RenderWidgetDidForwardMouseEvent(mouse_event);
1013 } 1013 }
1014 1014
1015 void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo( 1015 void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo(
1016 const blink::WebMouseEvent& mouse_event, 1016 const blink::WebMouseEvent& mouse_event,
1017 const ui::LatencyInfo& ui_latency) { 1017 const ui::LatencyInfo& ui_latency) {
1018 TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent", 1018 TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent", "x",
1019 "x", mouse_event.x, "y", mouse_event.y); 1019 mouse_event.position.x, "y", mouse_event.position.y);
1020 1020
1021 for (size_t i = 0; i < mouse_event_callbacks_.size(); ++i) { 1021 for (size_t i = 0; i < mouse_event_callbacks_.size(); ++i) {
1022 if (mouse_event_callbacks_[i].Run(mouse_event)) 1022 if (mouse_event_callbacks_[i].Run(mouse_event))
1023 return; 1023 return;
1024 } 1024 }
1025 1025
1026 if (ShouldDropInputEvents()) 1026 if (ShouldDropInputEvents())
1027 return; 1027 return;
1028 1028
1029 if (touch_emulator_ && touch_emulator_->HandleMouseEvent(mouse_event)) 1029 if (touch_emulator_ && touch_emulator_->HandleMouseEvent(mouse_event))
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2642 void RenderWidgetHostImpl::RequestCompositionUpdates(bool immediate_request, 2642 void RenderWidgetHostImpl::RequestCompositionUpdates(bool immediate_request,
2643 bool monitor_updates) { 2643 bool monitor_updates) {
2644 if (!immediate_request && monitor_updates == monitoring_composition_info_) 2644 if (!immediate_request && monitor_updates == monitoring_composition_info_)
2645 return; 2645 return;
2646 monitoring_composition_info_ = monitor_updates; 2646 monitoring_composition_info_ = monitor_updates;
2647 Send(new InputMsg_RequestCompositionUpdates(routing_id_, immediate_request, 2647 Send(new InputMsg_RequestCompositionUpdates(routing_id_, immediate_request,
2648 monitor_updates)); 2648 monitor_updates));
2649 } 2649 }
2650 2650
2651 } // namespace content 2651 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698