| 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_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 6 | 6 |
| 7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
| 8 | 8 |
| 9 #include "base/android/sys_utils.h" | 9 #include "base/android/sys_utils.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { | 1110 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { |
| 1111 const bool event_consumed = ack_result == INPUT_EVENT_ACK_STATE_CONSUMED; | 1111 const bool event_consumed = ack_result == INPUT_EVENT_ACK_STATE_CONSUMED; |
| 1112 gesture_provider_.OnTouchEventAck(event_consumed); | 1112 gesture_provider_.OnTouchEventAck(event_consumed); |
| 1113 } | 1113 } |
| 1114 | 1114 |
| 1115 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning( | 1115 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning( |
| 1116 bool is_pinned_to_left, bool is_pinned_to_right) { | 1116 bool is_pinned_to_left, bool is_pinned_to_right) { |
| 1117 // intentionally empty, like RenderWidgetHostViewViews | 1117 // intentionally empty, like RenderWidgetHostViewViews |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 void RenderWidgetHostViewAndroid::UnhandledWheelEvent( | |
| 1121 const blink::WebMouseWheelEvent& event) { | |
| 1122 // intentionally empty, like RenderWidgetHostViewViews | |
| 1123 } | |
| 1124 | |
| 1125 void RenderWidgetHostViewAndroid::GestureEventAck( | 1120 void RenderWidgetHostViewAndroid::GestureEventAck( |
| 1126 const blink::WebGestureEvent& event, | 1121 const blink::WebGestureEvent& event, |
| 1127 InputEventAckState ack_result) { | 1122 InputEventAckState ack_result) { |
| 1128 if (content_view_core_) | 1123 if (content_view_core_) |
| 1129 content_view_core_->OnGestureEventAck(event, ack_result); | 1124 content_view_core_->OnGestureEventAck(event, ack_result); |
| 1130 } | 1125 } |
| 1131 | 1126 |
| 1132 InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent( | 1127 InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent( |
| 1133 const blink::WebInputEvent& input_event) { | 1128 const blink::WebInputEvent& input_event) { |
| 1134 if (content_view_core_ && | 1129 if (content_view_core_ && |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 results->availableRect = display.work_area(); | 1447 results->availableRect = display.work_area(); |
| 1453 results->deviceScaleFactor = display.device_scale_factor(); | 1448 results->deviceScaleFactor = display.device_scale_factor(); |
| 1454 results->orientationAngle = display.RotationAsDegree(); | 1449 results->orientationAngle = display.RotationAsDegree(); |
| 1455 gfx::DeviceDisplayInfo info; | 1450 gfx::DeviceDisplayInfo info; |
| 1456 results->depth = info.GetBitsPerPixel(); | 1451 results->depth = info.GetBitsPerPixel(); |
| 1457 results->depthPerComponent = info.GetBitsPerComponent(); | 1452 results->depthPerComponent = info.GetBitsPerComponent(); |
| 1458 results->isMonochrome = (results->depthPerComponent == 0); | 1453 results->isMonochrome = (results->depthPerComponent == 0); |
| 1459 } | 1454 } |
| 1460 | 1455 |
| 1461 } // namespace content | 1456 } // namespace content |
| OLD | NEW |