OLD | NEW |
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 Loading... |
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 |
OLD | NEW |