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

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

Issue 11819015: Browser Plugin: Sort BrowserPluginGuest::OnSetSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 3572f2d7b2f82f23c7b1e487ba17afd2026311b8..6736d72f991d6b032f8acd1f12da3eda037a045e 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -73,8 +73,8 @@ bool BrowserPluginGuest::OnMessageReceivedFromEmbedder(
OnHandleInputEvent)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ResizeGuest, OnResizeGuest)
- IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetAutoSize, OnSetSize)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetFocus, OnSetFocus)
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetAutoSize, OnSetSize)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetVisibility, OnSetVisibility)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_TerminateGuest, OnTerminateGuest)
@@ -459,6 +459,13 @@ void BrowserPluginGuest::OnResizeGuest(
web_contents()->GetView()->SizeContents(params.view_size);
}
+void BrowserPluginGuest::OnSetFocus(int instance_id, bool focused) {
+ if (focused_ == focused)
+ return;
+ focused_ = focused;
+ Send(new ViewMsg_SetFocus(routing_id(), focused));
+}
+
void BrowserPluginGuest::OnSetSize(
int instance_id,
const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
@@ -491,13 +498,6 @@ void BrowserPluginGuest::OnSetSize(
OnResizeGuest(instance_id_, resize_guest_params);
}
-void BrowserPluginGuest::OnSetFocus(int instance_id, bool focused) {
- if (focused_ == focused)
- return;
- focused_ = focused;
- Send(new ViewMsg_SetFocus(routing_id(), focused));
-}
-
void BrowserPluginGuest::OnSetVisibility(int instance_id, bool visible) {
visible_ = visible;
BrowserPluginEmbedder* embedder =
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698