| 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 <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1655 | 1655 |
| 1656 if (overscroll_controller_) | 1656 if (overscroll_controller_) |
| 1657 overscroll_controller_->OnOverscrolled(params); | 1657 overscroll_controller_->OnOverscrolled(params); |
| 1658 } | 1658 } |
| 1659 | 1659 |
| 1660 void RenderWidgetHostViewAndroid::DidStopFlinging() { | 1660 void RenderWidgetHostViewAndroid::DidStopFlinging() { |
| 1661 if (content_view_core_) | 1661 if (content_view_core_) |
| 1662 content_view_core_->DidStopFlinging(); | 1662 content_view_core_->DidStopFlinging(); |
| 1663 } | 1663 } |
| 1664 | 1664 |
| 1665 uint32_t RenderWidgetHostViewAndroid::GetSurfaceClientId() { | 1665 cc::FrameSinkId RenderWidgetHostViewAndroid::GetFrameSinkId() { |
| 1666 if (!delegated_frame_host_) | 1666 if (!delegated_frame_host_) |
| 1667 return 0; | 1667 return cc::FrameSinkId(); |
| 1668 | 1668 |
| 1669 return delegated_frame_host_->GetSurfaceClientId(); | 1669 return delegated_frame_host_->GetFrameSinkId(); |
| 1670 } | 1670 } |
| 1671 | 1671 |
| 1672 void RenderWidgetHostViewAndroid::SetContentViewCore( | 1672 void RenderWidgetHostViewAndroid::SetContentViewCore( |
| 1673 ContentViewCoreImpl* content_view_core) { | 1673 ContentViewCoreImpl* content_view_core) { |
| 1674 DCHECK(!content_view_core || !content_view_core_ || | 1674 DCHECK(!content_view_core || !content_view_core_ || |
| 1675 (content_view_core_ == content_view_core)); | 1675 (content_view_core_ == content_view_core)); |
| 1676 StopObservingRootWindow(); | 1676 StopObservingRootWindow(); |
| 1677 | 1677 |
| 1678 bool resize = false; | 1678 bool resize = false; |
| 1679 if (content_view_core != content_view_core_) { | 1679 if (content_view_core != content_view_core_) { |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1964 case ui::MotionEvent::ACTION_UP: | 1964 case ui::MotionEvent::ACTION_UP: |
| 1965 case ui::MotionEvent::ACTION_POINTER_UP: | 1965 case ui::MotionEvent::ACTION_POINTER_UP: |
| 1966 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", | 1966 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", |
| 1967 delta.InMicroseconds(), 1, 1000000, 50); | 1967 delta.InMicroseconds(), 1, 1000000, 50); |
| 1968 default: | 1968 default: |
| 1969 return; | 1969 return; |
| 1970 } | 1970 } |
| 1971 } | 1971 } |
| 1972 | 1972 |
| 1973 } // namespace content | 1973 } // namespace content |
| OLD | NEW |