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

Unified Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 155172: Start using WebCursorInfo from the WebKit API. WebCursorInfo is a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « chrome/renderer/webplugin_delegate_proxy.h ('k') | webkit/api/public/WebCursorInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_proxy.cc
===================================================================
--- chrome/renderer/webplugin_delegate_proxy.cc (revision 20148)
+++ chrome/renderer/webplugin_delegate_proxy.cc (working copy)
@@ -30,6 +30,7 @@
#include "grit/generated_resources.h"
#include "net/base/mime_util.h"
#include "printing/native_metafile.h"
+#include "webkit/api/public/WebCursorInfo.h"
#include "webkit/api/public/WebDragData.h"
#include "webkit/api/public/WebString.h"
#include "webkit/api/public/WebVector.h"
@@ -42,6 +43,7 @@
#include "chrome/common/ipc_channel_posix.h"
#endif
+using WebKit::WebCursorInfo;
using WebKit::WebInputEvent;
using WebKit::WebDragData;
using WebKit::WebVector;
@@ -623,16 +625,18 @@
bool WebPluginDelegateProxy::HandleInputEvent(
const WebInputEvent& event,
- WebCursor* cursor) {
+ WebCursorInfo* cursor_info) {
bool handled;
+ WebCursor cursor;
// A windowless plugin can enter a modal loop in the context of a
// NPP_HandleEvent call, in which case we need to pump messages to
// the plugin. We pass of the corresponding event handle to the
// plugin process, which is set if the plugin does enter a modal loop.
IPC::SyncMessage* message = new PluginMsg_HandleInputEvent(
- instance_id_, &event, &handled, cursor);
+ instance_id_, &event, &handled, &cursor);
message->set_pump_messages_event(modal_loop_pump_messages_event_.get());
Send(message);
+ cursor.GetCursorInfo(cursor_info);
return handled;
}
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.h ('k') | webkit/api/public/WebCursorInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698