| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|