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

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

Issue 1411203010: Separate RenderViewHost from RenderWidgetHost, part 4: delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops Created 5 years, 1 month 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 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 frame_metadata.root_scroll_offset, 1347 frame_metadata.root_scroll_offset,
1348 frame_metadata.page_scale_factor, 1348 frame_metadata.page_scale_factor,
1349 gfx::Vector2dF(frame_metadata.min_page_scale_factor, 1349 gfx::Vector2dF(frame_metadata.min_page_scale_factor,
1350 frame_metadata.max_page_scale_factor), 1350 frame_metadata.max_page_scale_factor),
1351 frame_metadata.root_layer_size, 1351 frame_metadata.root_layer_size,
1352 frame_metadata.scrollable_viewport_size, 1352 frame_metadata.scrollable_viewport_size,
1353 frame_metadata.location_bar_offset, 1353 frame_metadata.location_bar_offset,
1354 frame_metadata.location_bar_content_translation, 1354 frame_metadata.location_bar_content_translation,
1355 is_mobile_optimized); 1355 is_mobile_optimized);
1356 #if defined(VIDEO_HOLE) 1356 #if defined(VIDEO_HOLE)
1357 if (host_ && host_->IsRenderView()) { 1357 if (host_) {
1358 RenderViewHostImpl* rvhi = static_cast<RenderViewHostImpl*>( 1358 RenderViewHostImpl* rvhi = RenderViewHostImpl::From(host_);
1359 RenderViewHost::From(host_));
1360 WebContentsImpl* web_contents_impl = 1359 WebContentsImpl* web_contents_impl =
1361 static_cast<WebContentsImpl*>(WebContents::FromRenderViewHost(rvhi)); 1360 static_cast<WebContentsImpl*>(WebContents::FromRenderViewHost(rvhi));
1362 if (web_contents_impl) 1361 if (web_contents_impl)
1363 web_contents_impl->media_web_contents_observer()->OnFrameInfoUpdated(); 1362 web_contents_impl->media_web_contents_observer()->OnFrameInfoUpdated();
1364 } 1363 }
1365 #endif // defined(VIDEO_HOLE) 1364 #endif // defined(VIDEO_HOLE)
1366 } 1365 }
1367 1366
1368 void RenderWidgetHostViewAndroid::ShowInternal() { 1367 void RenderWidgetHostViewAndroid::ShowInternal() {
1369 bool show = is_showing_ && is_window_activity_started_ && is_window_visible_; 1368 bool show = is_showing_ && is_window_activity_started_ && is_window_visible_;
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 results->orientationAngle = display.RotationAsDegree(); 2044 results->orientationAngle = display.RotationAsDegree();
2046 results->orientationType = 2045 results->orientationType =
2047 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2046 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2048 gfx::DeviceDisplayInfo info; 2047 gfx::DeviceDisplayInfo info;
2049 results->depth = info.GetBitsPerPixel(); 2048 results->depth = info.GetBitsPerPixel();
2050 results->depthPerComponent = info.GetBitsPerComponent(); 2049 results->depthPerComponent = info.GetBitsPerComponent();
2051 results->isMonochrome = (results->depthPerComponent == 0); 2050 results->isMonochrome = (results->depthPerComponent == 0);
2052 } 2051 }
2053 2052
2054 } // namespace content 2053 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698