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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 1752833002: Implement Gesture event hit testing/forwarding for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wjmCFTouch.v2
Patch Set: Created 4 years, 9 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_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 #include <OpenGL/gl.h> 8 #include <OpenGL/gl.h>
9 #include <QuartzCore/QuartzCore.h> 9 #include <QuartzCore/QuartzCore.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 const blink::WebMouseWheelEvent& event) { 1606 const blink::WebMouseWheelEvent& event) {
1607 render_widget_host_->ForwardWheelEvent(event); 1607 render_widget_host_->ForwardWheelEvent(event);
1608 } 1608 }
1609 1609
1610 void RenderWidgetHostViewMac::ProcessTouchEvent( 1610 void RenderWidgetHostViewMac::ProcessTouchEvent(
1611 const blink::WebTouchEvent& event, 1611 const blink::WebTouchEvent& event,
1612 const ui::LatencyInfo& latency) { 1612 const ui::LatencyInfo& latency) {
1613 render_widget_host_->ForwardTouchEventWithLatencyInfo(event, latency); 1613 render_widget_host_->ForwardTouchEventWithLatencyInfo(event, latency);
1614 } 1614 }
1615 1615
1616 void RenderWidgetHostViewMac::ProcessGestureEvent(
1617 const blink::WebGestureEvent& event,
1618 const ui::LatencyInfo& latency) {
1619 render_widget_host_->ForwardGestureEventWithLatencyInfo(event, latency);
1620 }
1621
1616 void RenderWidgetHostViewMac::TransformPointToLocalCoordSpace( 1622 void RenderWidgetHostViewMac::TransformPointToLocalCoordSpace(
1617 const gfx::Point& point, 1623 const gfx::Point& point,
1618 cc::SurfaceId original_surface, 1624 cc::SurfaceId original_surface,
1619 gfx::Point* transformed_point) { 1625 gfx::Point* transformed_point) {
1620 delegated_frame_host_->TransformPointToLocalCoordSpace( 1626 delegated_frame_host_->TransformPointToLocalCoordSpace(
1621 point, original_surface, transformed_point); 1627 point, original_surface, transformed_point);
1622 } 1628 }
1623 1629
1624 bool RenderWidgetHostViewMac::Send(IPC::Message* message) { 1630 bool RenderWidgetHostViewMac::Send(IPC::Message* message) {
1625 if (render_widget_host_) 1631 if (render_widget_host_)
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
3446 3452
3447 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3453 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3448 // regions that are not draggable. (See ControlRegionView in 3454 // regions that are not draggable. (See ControlRegionView in
3449 // native_app_window_cocoa.mm). This requires the render host view to be 3455 // native_app_window_cocoa.mm). This requires the render host view to be
3450 // draggable by default. 3456 // draggable by default.
3451 - (BOOL)mouseDownCanMoveWindow { 3457 - (BOOL)mouseDownCanMoveWindow {
3452 return YES; 3458 return YES;
3453 } 3459 }
3454 3460
3455 @end 3461 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698