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