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

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

Issue 12326168: Move <webview> API to chrome layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 7 years, 10 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_guest_impl.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest_impl.cc b/content/browser/browser_plugin/browser_plugin_guest_impl.cc
index f5e1b58b682387d67f8207cb22026f1183d35112..80f2fb1a1e5dde0db23e1a1af05537eececb3356 100644
--- a/content/browser/browser_plugin/browser_plugin_guest_impl.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest_impl.cc
@@ -123,7 +123,6 @@ bool BrowserPluginGuestImpl::OnMessageReceivedFromEmbedder(
OnDragStatusUpdate)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ForwardMessage,
OnForwardMessage)
- IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Go, OnGo)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_HandleInputEvent,
OnHandleInputEvent)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_NavigateGuest, OnNavigateGuest)
@@ -182,6 +181,8 @@ void BrowserPluginGuestImpl::Initialize(
GetContentClient()->browser()->GuestWebContentsCreated(
web_contents(), embedder_web_contents_);
+
+ GetContentClient()->browser()->BrowserPluginGuestCreated(this);
}
BrowserPluginGuestImpl::~BrowserPluginGuestImpl() {
@@ -570,10 +571,6 @@ void BrowserPluginGuestImpl::OnForwardMessage(int instance_id,
}
}
-void BrowserPluginGuestImpl::OnGo(int instance_id, int relative_index) {
- web_contents()->GetController().GoToOffset(relative_index);
-}
-
void BrowserPluginGuestImpl::OnHandleInputEvent(
int instance_id,
const gfx::Rect& guest_window_rect,
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest_impl.h ('k') | content/public/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698