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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |