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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder.cc

Issue 98073015: <webview>: Support zoom in WebUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment Created 6 years, 11 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
Index: content/browser/browser_plugin/browser_plugin_embedder.cc
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.cc b/content/browser/browser_plugin/browser_plugin_embedder.cc
index af24d4725010e6df7d32e897013c14fa5d88cc41..81a65cc68f28b8faff3d90ead20bffb80f80073d 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.cc
+++ b/content/browser/browser_plugin/browser_plugin_embedder.cc
@@ -119,6 +119,21 @@ bool BrowserPluginEmbedder::HandleKeyboardEvent(
event));
}
+bool BrowserPluginEmbedder::SetZoomLevelCallback(
+ double level, BrowserPluginGuest* guest) {
+ guest->GetWebContents()->SetZoomLevel(level);
+ return false;
nasko 2014/01/08 21:59:06 nit: The comment you had in the other CL was usefu
Fady Samuel 2014/01/09 16:19:45 Done.
+}
+
+void BrowserPluginEmbedder::SetZoomLevel(double level) {
+ WebContentsImpl* embedder =
+ static_cast<WebContentsImpl*>(web_contents());
+ GetBrowserPluginGuestManager()->ForEachGuest(embedder, base::Bind(
+ &BrowserPluginEmbedder::SetZoomLevelCallback,
+ base::Unretained(this),
+ level));
+}
+
void BrowserPluginEmbedder::RenderProcessGone(base::TerminationStatus status) {
CleanUp();
}

Powered by Google App Engine
This is Rietveld 408576698