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_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2035 } | 2035 } |
2036 | 2036 |
2037 void RenderWidgetHostViewAura::ProcessGestureEvent( | 2037 void RenderWidgetHostViewAura::ProcessGestureEvent( |
2038 const blink::WebGestureEvent& event, | 2038 const blink::WebGestureEvent& event, |
2039 const ui::LatencyInfo& latency) { | 2039 const ui::LatencyInfo& latency) { |
2040 host_->ForwardGestureEventWithLatencyInfo(event, latency); | 2040 host_->ForwardGestureEventWithLatencyInfo(event, latency); |
2041 } | 2041 } |
2042 | 2042 |
2043 void RenderWidgetHostViewAura::TransformPointToLocalCoordSpace( | 2043 void RenderWidgetHostViewAura::TransformPointToLocalCoordSpace( |
2044 const gfx::Point& point, | 2044 const gfx::Point& point, |
2045 cc::SurfaceId original_surface, | 2045 const cc::SurfaceId& original_surface, |
2046 gfx::Point* transformed_point) { | 2046 gfx::Point* transformed_point) { |
2047 // Transformations use physical pixels rather than DIP, so conversion | 2047 // Transformations use physical pixels rather than DIP, so conversion |
2048 // is necessary. | 2048 // is necessary. |
2049 gfx::Point point_in_pixels = | 2049 gfx::Point point_in_pixels = |
2050 gfx::ConvertPointToPixel(device_scale_factor_, point); | 2050 gfx::ConvertPointToPixel(device_scale_factor_, point); |
2051 delegated_frame_host_->TransformPointToLocalCoordSpace( | 2051 delegated_frame_host_->TransformPointToLocalCoordSpace( |
2052 point_in_pixels, original_surface, transformed_point); | 2052 point_in_pixels, original_surface, transformed_point); |
2053 *transformed_point = | 2053 *transformed_point = |
2054 gfx::ConvertPointToDIP(device_scale_factor_, *transformed_point); | 2054 gfx::ConvertPointToDIP(device_scale_factor_, *transformed_point); |
2055 } | 2055 } |
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3005 | 3005 |
3006 //////////////////////////////////////////////////////////////////////////////// | 3006 //////////////////////////////////////////////////////////////////////////////// |
3007 // RenderWidgetHostViewBase, public: | 3007 // RenderWidgetHostViewBase, public: |
3008 | 3008 |
3009 // static | 3009 // static |
3010 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 3010 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
3011 GetScreenInfoForWindow(results, NULL); | 3011 GetScreenInfoForWindow(results, NULL); |
3012 } | 3012 } |
3013 | 3013 |
3014 } // namespace content | 3014 } // namespace content |
OLD | NEW |