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

Unified Diff: chromecast/shell/renderer/cast_content_renderer_client.cc

Issue 606453003: Chromecast: always disable "shrinks viewport content to fit." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/chromecast.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/shell/renderer/cast_content_renderer_client.cc
diff --git a/chromecast/shell/renderer/cast_content_renderer_client.cc b/chromecast/shell/renderer/cast_content_renderer_client.cc
index 7d278ee5776e80c1f508d83127f995b72fe6b33b..59e6c1f46915bd2c2e2362bab3bef7986a7cd370 100644
--- a/chromecast/shell/renderer/cast_content_renderer_client.cc
+++ b/chromecast/shell/renderer/cast_content_renderer_client.cc
@@ -13,6 +13,7 @@
#include "content/public/renderer/render_view.h"
#include "crypto/nss_util.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"
namespace chromecast {
@@ -42,6 +43,7 @@ void CastContentRendererClient::RenderViewCreated(
blink::WebView* webview = render_view->GetWebView();
if (webview) {
webview->setBaseBackgroundColor(kColorBlack);
+ webview->settings()->setShrinksViewportContentToFit(false);
}
}
« no previous file with comments | « chromecast/chromecast.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698