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

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

Issue 25040002: Enables fullscreen subtitle and media control from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@build_hack
Patch Set: rebased, let's go! Created 6 years, 11 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/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 RenderViewHost::From(GetRenderWidgetHost())); 842 RenderViewHost::From(GetRenderWidgetHost()));
843 // Unblock the compositor. 843 // Unblock the compositor.
844 BrowserThread::PostTask( 844 BrowserThread::PostTask(
845 BrowserThread::UI, FROM_HERE, 845 BrowserThread::UI, FROM_HERE,
846 base::Bind(&RenderViewDevToolsAgentHost::SynchronousSwapCompositorFrame, 846 base::Bind(&RenderViewDevToolsAgentHost::SynchronousSwapCompositorFrame,
847 static_cast<RenderViewDevToolsAgentHost*>(dtah.get()), 847 static_cast<RenderViewDevToolsAgentHost*>(dtah.get()),
848 frame_metadata)); 848 frame_metadata));
849 } 849 }
850 } 850 }
851 851
852 void RenderWidgetHostViewAndroid::SetOverlayVideoMode(bool enabled) {
853 layer_->SetContentsOpaque(!enabled);
854 }
855
852 void RenderWidgetHostViewAndroid::SynchronousCopyContents( 856 void RenderWidgetHostViewAndroid::SynchronousCopyContents(
853 const gfx::Rect& src_subrect_in_pixel, 857 const gfx::Rect& src_subrect_in_pixel,
854 const gfx::Size& dst_size_in_pixel, 858 const gfx::Size& dst_size_in_pixel,
855 const base::Callback<void(bool, const SkBitmap&)>& callback) { 859 const base::Callback<void(bool, const SkBitmap&)>& callback) {
856 SynchronousCompositor* compositor = 860 SynchronousCompositor* compositor =
857 SynchronousCompositorImpl::FromID(host_->GetProcess()->GetID(), 861 SynchronousCompositorImpl::FromID(host_->GetProcess()->GetID(),
858 host_->GetRoutingID()); 862 host_->GetRoutingID());
859 if (!compositor) { 863 if (!compositor) {
860 callback.Run(false, SkBitmap()); 864 callback.Run(false, SkBitmap());
861 return; 865 return;
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 // RenderWidgetHostView, public: 1431 // RenderWidgetHostView, public:
1428 1432
1429 // static 1433 // static
1430 RenderWidgetHostView* 1434 RenderWidgetHostView*
1431 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 1435 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
1432 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 1436 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
1433 return new RenderWidgetHostViewAndroid(rwhi, NULL); 1437 return new RenderWidgetHostViewAndroid(rwhi, NULL);
1434 } 1438 }
1435 1439
1436 } // namespace content 1440 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698