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 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { | 1090 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { |
1091 const bool event_consumed = ack_result == INPUT_EVENT_ACK_STATE_CONSUMED; | 1091 const bool event_consumed = ack_result == INPUT_EVENT_ACK_STATE_CONSUMED; |
1092 gesture_provider_.OnTouchEventAck(event_consumed); | 1092 gesture_provider_.OnTouchEventAck(event_consumed); |
1093 } | 1093 } |
1094 | 1094 |
1095 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning( | 1095 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning( |
1096 bool is_pinned_to_left, bool is_pinned_to_right) { | 1096 bool is_pinned_to_left, bool is_pinned_to_right) { |
1097 // intentionally empty, like RenderWidgetHostViewViews | 1097 // intentionally empty, like RenderWidgetHostViewViews |
1098 } | 1098 } |
1099 | 1099 |
1100 void RenderWidgetHostViewAndroid::UnhandledWheelEvent( | |
1101 const blink::WebMouseWheelEvent& event) { | |
1102 // intentionally empty, like RenderWidgetHostViewViews | |
1103 } | |
1104 | |
1105 void RenderWidgetHostViewAndroid::GestureEventAck( | 1100 void RenderWidgetHostViewAndroid::GestureEventAck( |
1106 const blink::WebGestureEvent& event, | 1101 const blink::WebGestureEvent& event, |
1107 InputEventAckState ack_result) { | 1102 InputEventAckState ack_result) { |
1108 if (content_view_core_) | 1103 if (content_view_core_) |
1109 content_view_core_->OnGestureEventAck(event, ack_result); | 1104 content_view_core_->OnGestureEventAck(event, ack_result); |
1110 } | 1105 } |
1111 | 1106 |
1112 InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent( | 1107 InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent( |
1113 const blink::WebInputEvent& input_event) { | 1108 const blink::WebInputEvent& input_event) { |
1114 if (content_view_core_ && | 1109 if (content_view_core_ && |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1451 results->availableRect = display.work_area(); | 1446 results->availableRect = display.work_area(); |
1452 results->deviceScaleFactor = display.device_scale_factor(); | 1447 results->deviceScaleFactor = display.device_scale_factor(); |
1453 results->orientationAngle = display.RotationAsDegree(); | 1448 results->orientationAngle = display.RotationAsDegree(); |
1454 gfx::DeviceDisplayInfo info; | 1449 gfx::DeviceDisplayInfo info; |
1455 results->depth = info.GetBitsPerPixel(); | 1450 results->depth = info.GetBitsPerPixel(); |
1456 results->depthPerComponent = info.GetBitsPerComponent(); | 1451 results->depthPerComponent = info.GetBitsPerComponent(); |
1457 results->isMonochrome = (results->depthPerComponent == 0); | 1452 results->isMonochrome = (results->depthPerComponent == 0); |
1458 } | 1453 } |
1459 | 1454 |
1460 } // namespace content | 1455 } // namespace content |
OLD | NEW |