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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 webview->settings()->setShrinksViewportContentToFit(false); | 47 webview->settings()->setShrinksViewportContentToFit(false); |
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 void CastContentRendererClient::AddKeySystems( | 51 void CastContentRendererClient::AddKeySystems( |
52 std::vector<content::KeySystemInfo>* key_systems) { | 52 std::vector< ::media::KeySystemInfo>* key_systems) { |
53 AddChromecastKeySystems(key_systems); | 53 AddChromecastKeySystems(key_systems); |
54 AddChromecastPlatformKeySystems(key_systems); | 54 AddChromecastPlatformKeySystems(key_systems); |
55 } | 55 } |
56 | 56 |
57 } // namespace shell | 57 } // namespace shell |
58 } // namespace chromecast | 58 } // namespace chromecast |
OLD | NEW |