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/build_info.h" | 9 #include "base/android/build_info.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1607 break; | 1607 break; |
1608 | 1608 |
1609 case blink::WebInputEvent::GestureTap: | 1609 case blink::WebInputEvent::GestureTap: |
1610 if (selection_controller_->WillHandleTapEvent( | 1610 if (selection_controller_->WillHandleTapEvent( |
1611 gfx::PointF(gesture_event.x, gesture_event.y), | 1611 gfx::PointF(gesture_event.x, gesture_event.y), |
1612 gesture_event.data.tap.tapCount)) { | 1612 gesture_event.data.tap.tapCount)) { |
1613 return INPUT_EVENT_ACK_STATE_CONSUMED; | 1613 return INPUT_EVENT_ACK_STATE_CONSUMED; |
1614 } | 1614 } |
1615 break; | 1615 break; |
1616 | 1616 |
| 1617 case blink::WebInputEvent::GestureScrollBegin: |
| 1618 selection_controller_->OnScrollBeginEvent(); |
| 1619 break; |
| 1620 |
1617 default: | 1621 default: |
1618 break; | 1622 break; |
1619 } | 1623 } |
1620 } | 1624 } |
1621 | 1625 |
1622 if (overscroll_controller_ && | 1626 if (overscroll_controller_ && |
1623 blink::WebInputEvent::isGestureEventType(input_event.type) && | 1627 blink::WebInputEvent::isGestureEventType(input_event.type) && |
1624 overscroll_controller_->WillHandleGestureEvent( | 1628 overscroll_controller_->WillHandleGestureEvent( |
1625 static_cast<const blink::WebGestureEvent&>(input_event))) { | 1629 static_cast<const blink::WebGestureEvent&>(input_event))) { |
1626 return INPUT_EVENT_ACK_STATE_CONSUMED; | 1630 return INPUT_EVENT_ACK_STATE_CONSUMED; |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2057 results->orientationAngle = display.RotationAsDegree(); | 2061 results->orientationAngle = display.RotationAsDegree(); |
2058 results->orientationType = | 2062 results->orientationType = |
2059 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 2063 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
2060 gfx::DeviceDisplayInfo info; | 2064 gfx::DeviceDisplayInfo info; |
2061 results->depth = info.GetBitsPerPixel(); | 2065 results->depth = info.GetBitsPerPixel(); |
2062 results->depthPerComponent = info.GetBitsPerComponent(); | 2066 results->depthPerComponent = info.GetBitsPerComponent(); |
2063 results->isMonochrome = (results->depthPerComponent == 0); | 2067 results->isMonochrome = (results->depthPerComponent == 0); |
2064 } | 2068 } |
2065 | 2069 |
2066 } // namespace content | 2070 } // namespace content |
OLD | NEW |