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

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

Issue 303423002: Browser Plugin: Remove Zoom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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 1c0df05c942df80066710c2447d21e5c0403765c..bccd6e69fe77cbeb2b267f92a30a282cceb89f4d 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.cc
+++ b/content/browser/browser_plugin/browser_plugin_embedder.cc
@@ -86,23 +86,6 @@ void BrowserPluginEmbedder::DidSendScreenRects() {
base::Unretained(this)));
}
-bool BrowserPluginEmbedder::SetZoomLevelCallback(
- double level, WebContents* guest_web_contents) {
- double zoom_factor = content::ZoomLevelToZoomFactor(level);
- static_cast<WebContentsImpl*>(guest_web_contents)->GetBrowserPluginGuest()->
- SetZoom(zoom_factor);
- // Not handled => Iterate over all guests.
- return false;
-}
-
-void BrowserPluginEmbedder::SetZoomLevel(double level) {
- GetBrowserPluginGuestManager()->ForEachGuest(
- GetWebContents(), base::Bind(
- &BrowserPluginEmbedder::SetZoomLevelCallback,
- base::Unretained(this),
- level));
-}
-
bool BrowserPluginEmbedder::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(BrowserPluginEmbedder, message)
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.h ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698