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

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

Issue 525523003: Remove two unnecessary params in ViewHostMsg_UpdateRect_Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 3 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 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 if (texture_size_in_layer_.IsEmpty()) 406 if (texture_size_in_layer_.IsEmpty())
407 return false; 407 return false;
408 // This tell us whether a valid frame has arrived or not. 408 // This tell us whether a valid frame has arrived or not.
409 if (!frame_evictor_->HasFrame()) 409 if (!frame_evictor_->HasFrame())
410 return false; 410 return false;
411 411
412 return true; 412 return true;
413 } 413 }
414 414
415 gfx::Vector2dF RenderWidgetHostViewAndroid::GetLastScrollOffset() const {
416 NOTREACHED();
417 return gfx::Vector2dF();
418 }
419
415 gfx::NativeView RenderWidgetHostViewAndroid::GetNativeView() const { 420 gfx::NativeView RenderWidgetHostViewAndroid::GetNativeView() const {
416 return content_view_core_->GetViewAndroid(); 421 return content_view_core_->GetViewAndroid();
417 } 422 }
418 423
419 gfx::NativeViewId RenderWidgetHostViewAndroid::GetNativeViewId() const { 424 gfx::NativeViewId RenderWidgetHostViewAndroid::GetNativeViewId() const {
420 return reinterpret_cast<gfx::NativeViewId>( 425 return reinterpret_cast<gfx::NativeViewId>(
421 const_cast<RenderWidgetHostViewAndroid*>(this)); 426 const_cast<RenderWidgetHostViewAndroid*>(this));
422 } 427 }
423 428
424 gfx::NativeViewAccessible 429 gfx::NativeViewAccessible
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1837 results->orientationAngle = display.RotationAsDegree(); 1842 results->orientationAngle = display.RotationAsDegree();
1838 results->orientationType = 1843 results->orientationType =
1839 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 1844 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
1840 gfx::DeviceDisplayInfo info; 1845 gfx::DeviceDisplayInfo info;
1841 results->depth = info.GetBitsPerPixel(); 1846 results->depth = info.GetBitsPerPixel();
1842 results->depthPerComponent = info.GetBitsPerComponent(); 1847 results->depthPerComponent = info.GetBitsPerComponent();
1843 results->isMonochrome = (results->depthPerComponent == 0); 1848 results->isMonochrome = (results->depthPerComponent == 0);
1844 } 1849 }
1845 1850
1846 } // namespace content 1851 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698