Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 1620053002: sync compositor: Merge input path with chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 insertion_bound); 1721 insertion_bound);
1722 selection_controller_->AllowShowingFromCurrentSelection(); 1722 selection_controller_->AllowShowingFromCurrentSelection();
1723 } 1723 }
1724 1724
1725 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const { 1725 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const {
1726 return cached_background_color_; 1726 return cached_background_color_;
1727 } 1727 }
1728 1728
1729 void RenderWidgetHostViewAndroid::DidOverscroll( 1729 void RenderWidgetHostViewAndroid::DidOverscroll(
1730 const DidOverscrollParams& params) { 1730 const DidOverscrollParams& params) {
1731 if (sync_compositor_)
1732 sync_compositor_->DidOverscroll(params);
1733
1731 if (!content_view_core_ || !layer_.get() || !is_showing_) 1734 if (!content_view_core_ || !layer_.get() || !is_showing_)
1732 return; 1735 return;
1733 1736
1734 if (overscroll_controller_) 1737 if (overscroll_controller_)
1735 overscroll_controller_->OnOverscrolled(params); 1738 overscroll_controller_->OnOverscrolled(params);
1736 } 1739 }
1737 1740
1738 void RenderWidgetHostViewAndroid::DidStopFlinging() { 1741 void RenderWidgetHostViewAndroid::DidStopFlinging() {
1739 if (content_view_core_) 1742 if (content_view_core_)
1740 content_view_core_->DidStopFlinging(); 1743 content_view_core_->DidStopFlinging();
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
2044 results->orientationAngle = display.RotationAsDegree(); 2047 results->orientationAngle = display.RotationAsDegree();
2045 results->orientationType = 2048 results->orientationType =
2046 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2049 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2047 gfx::DeviceDisplayInfo info; 2050 gfx::DeviceDisplayInfo info;
2048 results->depth = info.GetBitsPerPixel(); 2051 results->depth = info.GetBitsPerPixel();
2049 results->depthPerComponent = info.GetBitsPerComponent(); 2052 results->depthPerComponent = info.GetBitsPerComponent();
2050 results->isMonochrome = (results->depthPerComponent == 0); 2053 results->isMonochrome = (results->depthPerComponent == 0);
2051 } 2054 }
2052 2055
2053 } // namespace content 2056 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698