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

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

Issue 1729373003: Implement touch events for site-isolation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use positioned iframe in test to simplify event targeting. 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 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1602 1602
1603 void RenderWidgetHostViewMac::ProcessMouseEvent( 1603 void RenderWidgetHostViewMac::ProcessMouseEvent(
1604 const blink::WebMouseEvent& event) { 1604 const blink::WebMouseEvent& event) {
1605 render_widget_host_->ForwardMouseEvent(event); 1605 render_widget_host_->ForwardMouseEvent(event);
1606 } 1606 }
1607 void RenderWidgetHostViewMac::ProcessMouseWheelEvent( 1607 void RenderWidgetHostViewMac::ProcessMouseWheelEvent(
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(
1613 const blink::WebTouchEvent& event,
1614 const ui::LatencyInfo& latency) {
1615 render_widget_host_->ForwardTouchEventWithLatencyInfo(event, latency);
1616 }
1617
1612 void RenderWidgetHostViewMac::TransformPointToLocalCoordSpace( 1618 void RenderWidgetHostViewMac::TransformPointToLocalCoordSpace(
1613 const gfx::Point& point, 1619 const gfx::Point& point,
1614 cc::SurfaceId original_surface, 1620 cc::SurfaceId original_surface,
1615 gfx::Point* transformed_point) { 1621 gfx::Point* transformed_point) {
1616 delegated_frame_host_->TransformPointToLocalCoordSpace( 1622 delegated_frame_host_->TransformPointToLocalCoordSpace(
1617 point, original_surface, transformed_point); 1623 point, original_surface, transformed_point);
1618 } 1624 }
1619 1625
1620 bool RenderWidgetHostViewMac::Send(IPC::Message* message) { 1626 bool RenderWidgetHostViewMac::Send(IPC::Message* message) {
1621 if (render_widget_host_) 1627 if (render_widget_host_)
(...skipping 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after
3483 3489
3484 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3490 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3485 // regions that are not draggable. (See ControlRegionView in 3491 // regions that are not draggable. (See ControlRegionView in
3486 // native_app_window_cocoa.mm). This requires the render host view to be 3492 // native_app_window_cocoa.mm). This requires the render host view to be
3487 // draggable by default. 3493 // draggable by default.
3488 - (BOOL)mouseDownCanMoveWindow { 3494 - (BOOL)mouseDownCanMoveWindow {
3489 return YES; 3495 return YES;
3490 } 3496 }
3491 3497
3492 @end 3498 @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