Commit a9851bf1 authored by gunsch's avatar gunsch Committed by Commit bot

Chromecast: always disable "shrinks viewport content to fit."

The setting is enabled by default for Android builds, but not
practical for Chromecast on Android.

R=byungchul@chromium.org,lcwu@chromium.org
BUG=None

Review URL: https://codereview.chromium.org/606453003

Cr-Commit-Position: refs/heads/master@{#296600}
parent 674907fe
...@@ -208,6 +208,7 @@ ...@@ -208,6 +208,7 @@
'../content/content.gyp:content', '../content/content.gyp:content',
'../content/content.gyp:content_app_browser', '../content/content.gyp:content_app_browser',
'../skia/skia.gyp:skia', '../skia/skia.gyp:skia',
'../third_party/WebKit/public/blink.gyp:blink',
'../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h', '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
], ],
'sources': [ 'sources': [
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "content/public/renderer/render_view.h" #include "content/public/renderer/render_view.h"
#include "crypto/nss_util.h" #include "crypto/nss_util.h"
#include "third_party/WebKit/public/platform/WebColor.h" #include "third_party/WebKit/public/platform/WebColor.h"
#include "third_party/WebKit/public/web/WebSettings.h"
#include "third_party/WebKit/public/web/WebView.h" #include "third_party/WebKit/public/web/WebView.h"
namespace chromecast { namespace chromecast {
...@@ -42,6 +43,7 @@ void CastContentRendererClient::RenderViewCreated( ...@@ -42,6 +43,7 @@ void CastContentRendererClient::RenderViewCreated(
blink::WebView* webview = render_view->GetWebView(); blink::WebView* webview = render_view->GetWebView();
if (webview) { if (webview) {
webview->setBaseBackgroundColor(kColorBlack); webview->setBaseBackgroundColor(kColorBlack);
webview->settings()->setShrinksViewportContentToFit(false);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment