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