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

Side by Side Diff: chromecast/renderer/cast_content_renderer_client.cc

Issue 687723005: Chromecast: disables WebKit's overlay play controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adds comments Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromecast/renderer/cast_content_renderer_client.h" 5 #include "chromecast/renderer/cast_content_renderer_client.h"
6 6
7 #include <sys/sysinfo.h> 7 #include <sys/sysinfo.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/memory_pressure_listener.h" 10 #include "base/memory/memory_pressure_listener.h"
(...skipping 26 matching lines...) Expand all
37 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) 37 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
38 crypto::InitNSSSafely(); 38 crypto::InitNSSSafely();
39 #endif 39 #endif
40 } 40 }
41 41
42 void CastContentRendererClient::RenderViewCreated( 42 void CastContentRendererClient::RenderViewCreated(
43 content::RenderView* render_view) { 43 content::RenderView* render_view) {
44 blink::WebView* webview = render_view->GetWebView(); 44 blink::WebView* webview = render_view->GetWebView();
45 if (webview) { 45 if (webview) {
46 webview->setBaseBackgroundColor(kColorBlack); 46 webview->setBaseBackgroundColor(kColorBlack);
47
48 // The following settings express consistent behaviors across Cast
49 // embedders, though Android has enabled by default for mobile browsers.
47 webview->settings()->setShrinksViewportContentToFit(false); 50 webview->settings()->setShrinksViewportContentToFit(false);
51 webview->settings()->setMediaControlsOverlayPlayButtonEnabled(false);
48 } 52 }
49 } 53 }
50 54
51 void CastContentRendererClient::AddKeySystems( 55 void CastContentRendererClient::AddKeySystems(
52 std::vector< ::media::KeySystemInfo>* key_systems) { 56 std::vector< ::media::KeySystemInfo>* key_systems) {
53 AddChromecastKeySystems(key_systems); 57 AddChromecastKeySystems(key_systems);
54 AddChromecastPlatformKeySystems(key_systems); 58 AddChromecastPlatformKeySystems(key_systems);
55 } 59 }
56 60
57 } // namespace shell 61 } // namespace shell
58 } // namespace chromecast 62 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698