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 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 | 1238 |
1239 // All offsets and sizes are in CSS pixels. | 1239 // All offsets and sizes are in CSS pixels. |
1240 content_view_core_->UpdateFrameInfo( | 1240 content_view_core_->UpdateFrameInfo( |
1241 frame_metadata.root_scroll_offset, | 1241 frame_metadata.root_scroll_offset, |
1242 frame_metadata.page_scale_factor, | 1242 frame_metadata.page_scale_factor, |
1243 gfx::Vector2dF(frame_metadata.min_page_scale_factor, | 1243 gfx::Vector2dF(frame_metadata.min_page_scale_factor, |
1244 frame_metadata.max_page_scale_factor), | 1244 frame_metadata.max_page_scale_factor), |
1245 frame_metadata.root_layer_size, | 1245 frame_metadata.root_layer_size, |
1246 frame_metadata.scrollable_viewport_size, | 1246 frame_metadata.scrollable_viewport_size, |
1247 frame_metadata.location_bar_offset, | 1247 frame_metadata.location_bar_offset, |
1248 frame_metadata.location_bar_content_translation); | 1248 frame_metadata.location_bar_content_translation, |
| 1249 frame_metadata.selection_start); |
1249 #if defined(VIDEO_HOLE) | 1250 #if defined(VIDEO_HOLE) |
1250 if (host_ && host_->IsRenderView()) { | 1251 if (host_ && host_->IsRenderView()) { |
1251 RenderViewHostImpl* rvhi = static_cast<RenderViewHostImpl*>( | 1252 RenderViewHostImpl* rvhi = static_cast<RenderViewHostImpl*>( |
1252 RenderViewHost::From(host_)); | 1253 RenderViewHost::From(host_)); |
1253 rvhi->media_web_contents_observer()->OnFrameInfoUpdated(); | 1254 rvhi->media_web_contents_observer()->OnFrameInfoUpdated(); |
1254 } | 1255 } |
1255 #endif // defined(VIDEO_HOLE) | 1256 #endif // defined(VIDEO_HOLE) |
1256 } | 1257 } |
1257 | 1258 |
1258 void RenderWidgetHostViewAndroid::AcceleratedSurfaceInitialized(int route_id) { | 1259 void RenderWidgetHostViewAndroid::AcceleratedSurfaceInitialized(int route_id) { |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1808 results->orientationAngle = display.RotationAsDegree(); | 1809 results->orientationAngle = display.RotationAsDegree(); |
1809 results->orientationType = | 1810 results->orientationType = |
1810 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 1811 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
1811 gfx::DeviceDisplayInfo info; | 1812 gfx::DeviceDisplayInfo info; |
1812 results->depth = info.GetBitsPerPixel(); | 1813 results->depth = info.GetBitsPerPixel(); |
1813 results->depthPerComponent = info.GetBitsPerComponent(); | 1814 results->depthPerComponent = info.GetBitsPerComponent(); |
1814 results->isMonochrome = (results->depthPerComponent == 0); | 1815 results->isMonochrome = (results->depthPerComponent == 0); |
1815 } | 1816 } |
1816 | 1817 |
1817 } // namespace content | 1818 } // namespace content |
OLD | NEW |