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

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: Update comments as per suggestions. 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 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 const blink::WebMouseWheelEvent& event) { 1608 const blink::WebMouseWheelEvent& event) {
1609 render_widget_host_->ForwardWheelEvent(event); 1609 render_widget_host_->ForwardWheelEvent(event);
1610 } 1610 }
1611 1611
1612 void RenderWidgetHostViewMac::ProcessTouchEvent( 1612 void RenderWidgetHostViewMac::ProcessTouchEvent(
1613 const blink::WebTouchEvent& event, 1613 const blink::WebTouchEvent& event,
1614 const ui::LatencyInfo& latency) { 1614 const ui::LatencyInfo& latency) {
1615 render_widget_host_->ForwardTouchEventWithLatencyInfo(event, latency); 1615 render_widget_host_->ForwardTouchEventWithLatencyInfo(event, latency);
1616 } 1616 }
1617 1617
1618 void RenderWidgetHostViewMac::ProcessGestureEvent(
1619 const blink::WebGestureEvent& event,
1620 const ui::LatencyInfo& latency) {
1621 render_widget_host_->ForwardGestureEventWithLatencyInfo(event, latency);
1622 }
1623
1618 void RenderWidgetHostViewMac::TransformPointToLocalCoordSpace( 1624 void RenderWidgetHostViewMac::TransformPointToLocalCoordSpace(
1619 const gfx::Point& point, 1625 const gfx::Point& point,
1620 cc::SurfaceId original_surface, 1626 cc::SurfaceId original_surface,
1621 gfx::Point* transformed_point) { 1627 gfx::Point* transformed_point) {
1622 delegated_frame_host_->TransformPointToLocalCoordSpace( 1628 delegated_frame_host_->TransformPointToLocalCoordSpace(
1623 point, original_surface, transformed_point); 1629 point, original_surface, transformed_point);
1624 } 1630 }
1625 1631
1626 bool RenderWidgetHostViewMac::Send(IPC::Message* message) { 1632 bool RenderWidgetHostViewMac::Send(IPC::Message* message) {
1627 if (render_widget_host_) 1633 if (render_widget_host_)
(...skipping 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after
3489 3495
3490 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3496 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3491 // regions that are not draggable. (See ControlRegionView in 3497 // regions that are not draggable. (See ControlRegionView in
3492 // native_app_window_cocoa.mm). This requires the render host view to be 3498 // native_app_window_cocoa.mm). This requires the render host view to be
3493 // draggable by default. 3499 // draggable by default.
3494 - (BOOL)mouseDownCanMoveWindow { 3500 - (BOOL)mouseDownCanMoveWindow {
3495 return YES; 3501 return YES;
3496 } 3502 }
3497 3503
3498 @end 3504 @end
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698