| 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 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/android/build_info.h" | 10 #include "base/android/build_info.h" |
| (...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 insertion_bound); | 1712 insertion_bound); |
| 1713 selection_controller_->AllowShowingFromCurrentSelection(); | 1713 selection_controller_->AllowShowingFromCurrentSelection(); |
| 1714 } | 1714 } |
| 1715 | 1715 |
| 1716 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const { | 1716 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const { |
| 1717 return cached_background_color_; | 1717 return cached_background_color_; |
| 1718 } | 1718 } |
| 1719 | 1719 |
| 1720 void RenderWidgetHostViewAndroid::DidOverscroll( | 1720 void RenderWidgetHostViewAndroid::DidOverscroll( |
| 1721 const DidOverscrollParams& params) { | 1721 const DidOverscrollParams& params) { |
| 1722 if (sync_compositor_) |
| 1723 sync_compositor_->DidOverscroll(params); |
| 1724 |
| 1722 if (!content_view_core_ || !layer_.get() || !is_showing_) | 1725 if (!content_view_core_ || !layer_.get() || !is_showing_) |
| 1723 return; | 1726 return; |
| 1724 | 1727 |
| 1725 if (overscroll_controller_) | 1728 if (overscroll_controller_) |
| 1726 overscroll_controller_->OnOverscrolled(params); | 1729 overscroll_controller_->OnOverscrolled(params); |
| 1727 } | 1730 } |
| 1728 | 1731 |
| 1729 void RenderWidgetHostViewAndroid::DidStopFlinging() { | 1732 void RenderWidgetHostViewAndroid::DidStopFlinging() { |
| 1730 if (content_view_core_) | 1733 if (content_view_core_) |
| 1731 content_view_core_->DidStopFlinging(); | 1734 content_view_core_->DidStopFlinging(); |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2021 results->orientationAngle = display.RotationAsDegree(); | 2024 results->orientationAngle = display.RotationAsDegree(); |
| 2022 results->orientationType = | 2025 results->orientationType = |
| 2023 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 2026 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
| 2024 gfx::DeviceDisplayInfo info; | 2027 gfx::DeviceDisplayInfo info; |
| 2025 results->depth = info.GetBitsPerPixel(); | 2028 results->depth = info.GetBitsPerPixel(); |
| 2026 results->depthPerComponent = info.GetBitsPerComponent(); | 2029 results->depthPerComponent = info.GetBitsPerComponent(); |
| 2027 results->isMonochrome = (results->depthPerComponent == 0); | 2030 results->isMonochrome = (results->depthPerComponent == 0); |
| 2028 } | 2031 } |
| 2029 | 2032 |
| 2030 } // namespace content | 2033 } // namespace content |
| OLD | NEW |