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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.cc

Issue 10917225: Browser Plugin: Reload and Stop operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/browser_plugin/browser_plugin_embedder_helper.h" 5 #include "content/browser/browser_plugin/browser_plugin_embedder_helper.h"
6 6
7 #include "base/time.h" 7 #include "base/time.h"
8 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 8 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
9 #include "content/browser/renderer_host/render_view_host_impl.h" 9 #include "content/browser/renderer_host/render_view_host_impl.h"
10 #include "content/browser/renderer_host/render_widget_host_impl.h" 10 #include "content/browser/renderer_host/render_widget_host_impl.h"
(...skipping 28 matching lines...) Expand all
39 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_NavigateGuest, 39 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_NavigateGuest,
40 OnNavigateGuest); 40 OnNavigateGuest);
41 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ResizeGuest, OnResizeGuest) 41 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ResizeGuest, OnResizeGuest)
42 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_UpdateRect_ACK, OnUpdateRectACK); 42 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_UpdateRect_ACK, OnUpdateRectACK);
43 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetFocus, OnSetFocus); 43 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetFocus, OnSetFocus);
44 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_HandleInputEvent, 44 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_HandleInputEvent,
45 OnHandleInputEvent(*static_cast<const IPC::SyncMessage*>(&message), 45 OnHandleInputEvent(*static_cast<const IPC::SyncMessage*>(&message),
46 &handled)) 46 &handled))
47 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginDestroyed, 47 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginDestroyed,
48 OnPluginDestroyed); 48 OnPluginDestroyed);
49 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop)
50 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload)
49 IPC_MESSAGE_UNHANDLED(handled = false) 51 IPC_MESSAGE_UNHANDLED(handled = false)
50 IPC_END_MESSAGE_MAP() 52 IPC_END_MESSAGE_MAP()
51 return handled; 53 return handled;
52 } 54 }
53 55
54 void BrowserPluginEmbedderHelper::OnResizeGuest( 56 void BrowserPluginEmbedderHelper::OnResizeGuest(
55 int instance_id, 57 int instance_id,
56 const BrowserPluginHostMsg_ResizeGuest_Params& params) { 58 const BrowserPluginHostMsg_ResizeGuest_Params& params) {
57 TransportDIB* damage_buffer = NULL; 59 TransportDIB* damage_buffer = NULL;
58 #if defined(OS_WIN) 60 #if defined(OS_WIN)
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 146 }
145 147
146 void BrowserPluginEmbedderHelper::OnSetFocus(int instance_id, bool focused) { 148 void BrowserPluginEmbedderHelper::OnSetFocus(int instance_id, bool focused) {
147 embedder_->SetFocus(instance_id, focused); 149 embedder_->SetFocus(instance_id, focused);
148 } 150 }
149 151
150 void BrowserPluginEmbedderHelper::OnPluginDestroyed(int instance_id) { 152 void BrowserPluginEmbedderHelper::OnPluginDestroyed(int instance_id) {
151 embedder_->PluginDestroyed(instance_id); 153 embedder_->PluginDestroyed(instance_id);
152 } 154 }
153 155
156 void BrowserPluginEmbedderHelper::OnStop(int instance_id) {
157 embedder_->Stop(instance_id);
158 }
159
160 void BrowserPluginEmbedderHelper::OnReload(int instance_id) {
161 embedder_->Reload(instance_id);
162 }
163
154 } // namespace content 164 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698