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

Side by Side Diff: chrome/plugin/webplugin_delegate_stub.cc

Issue 115330: linux: Adding events to windowless plugins on Linux (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.h ('k') | chrome/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/plugin/webplugin_delegate_stub.h" 5 #include "chrome/plugin/webplugin_delegate_stub.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 IPC_BEGIN_MESSAGE_MAP(WebPluginDelegateStub, msg) 75 IPC_BEGIN_MESSAGE_MAP(WebPluginDelegateStub, msg)
76 IPC_MESSAGE_HANDLER(PluginMsg_Init, OnInit) 76 IPC_MESSAGE_HANDLER(PluginMsg_Init, OnInit)
77 IPC_MESSAGE_HANDLER(PluginMsg_WillSendRequest, OnWillSendRequest) 77 IPC_MESSAGE_HANDLER(PluginMsg_WillSendRequest, OnWillSendRequest)
78 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveResponse, OnDidReceiveResponse) 78 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveResponse, OnDidReceiveResponse)
79 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveData, OnDidReceiveData) 79 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveData, OnDidReceiveData)
80 IPC_MESSAGE_HANDLER(PluginMsg_DidFinishLoading, OnDidFinishLoading) 80 IPC_MESSAGE_HANDLER(PluginMsg_DidFinishLoading, OnDidFinishLoading)
81 IPC_MESSAGE_HANDLER(PluginMsg_DidFail, OnDidFail) 81 IPC_MESSAGE_HANDLER(PluginMsg_DidFail, OnDidFail)
82 IPC_MESSAGE_HANDLER(PluginMsg_DidFinishLoadWithReason, 82 IPC_MESSAGE_HANDLER(PluginMsg_DidFinishLoadWithReason,
83 OnDidFinishLoadWithReason) 83 OnDidFinishLoadWithReason)
84 IPC_MESSAGE_HANDLER(PluginMsg_SetFocus, OnSetFocus) 84 IPC_MESSAGE_HANDLER(PluginMsg_SetFocus, OnSetFocus)
85 IPC_MESSAGE_HANDLER(PluginMsg_HandleEvent, OnHandleEvent) 85 IPC_MESSAGE_HANDLER(PluginMsg_HandleInputEvent, OnHandleInputEvent)
86 IPC_MESSAGE_HANDLER(PluginMsg_Paint, OnPaint) 86 IPC_MESSAGE_HANDLER(PluginMsg_Paint, OnPaint)
87 IPC_MESSAGE_HANDLER(PluginMsg_DidPaint, OnDidPaint) 87 IPC_MESSAGE_HANDLER(PluginMsg_DidPaint, OnDidPaint)
88 IPC_MESSAGE_HANDLER(PluginMsg_Print, OnPrint) 88 IPC_MESSAGE_HANDLER(PluginMsg_Print, OnPrint)
89 IPC_MESSAGE_HANDLER(PluginMsg_GetPluginScriptableObject, 89 IPC_MESSAGE_HANDLER(PluginMsg_GetPluginScriptableObject,
90 OnGetPluginScriptableObject) 90 OnGetPluginScriptableObject)
91 IPC_MESSAGE_HANDLER(PluginMsg_UpdateGeometry, OnUpdateGeometry) 91 IPC_MESSAGE_HANDLER(PluginMsg_UpdateGeometry, OnUpdateGeometry)
92 IPC_MESSAGE_HANDLER(PluginMsg_SendJavaScriptStream, 92 IPC_MESSAGE_HANDLER(PluginMsg_SendJavaScriptStream,
93 OnSendJavaScriptStream) 93 OnSendJavaScriptStream)
94 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveManualResponse, 94 IPC_MESSAGE_HANDLER(PluginMsg_DidReceiveManualResponse,
95 OnDidReceiveManualResponse) 95 OnDidReceiveManualResponse)
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 205 }
206 206
207 void WebPluginDelegateStub::OnDidFinishLoadWithReason(int reason) { 207 void WebPluginDelegateStub::OnDidFinishLoadWithReason(int reason) {
208 delegate_->DidFinishLoadWithReason(reason); 208 delegate_->DidFinishLoadWithReason(reason);
209 } 209 }
210 210
211 void WebPluginDelegateStub::OnSetFocus() { 211 void WebPluginDelegateStub::OnSetFocus() {
212 delegate_->SetFocus(); 212 delegate_->SetFocus();
213 } 213 }
214 214
215 void WebPluginDelegateStub::OnHandleEvent(const NPEvent& event, 215 void WebPluginDelegateStub::OnHandleInputEvent(
216 bool* handled, 216 const WebKit::WebInputEvent *event,
217 WebCursor* cursor) { 217 bool* handled,
218 *handled = delegate_->HandleEvent(const_cast<NPEvent*>(&event), cursor); 218 WebCursor* cursor) {
219 *handled = delegate_->HandleInputEvent(*event, cursor);
219 } 220 }
220 221
221 void WebPluginDelegateStub::OnPaint(const gfx::Rect& damaged_rect) { 222 void WebPluginDelegateStub::OnPaint(const gfx::Rect& damaged_rect) {
222 webplugin_->Paint(damaged_rect); 223 webplugin_->Paint(damaged_rect);
223 } 224 }
224 225
225 void WebPluginDelegateStub::OnDidPaint() { 226 void WebPluginDelegateStub::OnDidPaint() {
226 webplugin_->DidPaint(); 227 webplugin_->DidPaint();
227 } 228 }
228 229
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 params.notify_data, 360 params.notify_data,
360 params.stream); 361 params.stream);
361 webplugin_->OnResourceCreated(params.resource_id, resource_client); 362 webplugin_->OnResourceCreated(params.resource_id, resource_client);
362 } 363 }
363 364
364 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, 365 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url,
365 bool notify_needed, 366 bool notify_needed,
366 intptr_t notify_data) { 367 intptr_t notify_data) {
367 delegate_->URLRequestRouted(url, notify_needed, notify_data); 368 delegate_->URLRequestRouted(url, notify_needed, notify_data);
368 } 369 }
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.h ('k') | chrome/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698