summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin_impl.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 06:51:01 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 06:51:01 +0000
commitc772bf6640208a3251cd6929ba492238ff9a6b23 (patch)
tree9c2eb474616ee13f6b802b52678986d91659fe30 /webkit/glue/webplugin_impl.cc
parent501677d56876d24ff29ec31a18563b7801a2c28d (diff)
downloadchromium_src-c772bf6640208a3251cd6929ba492238ff9a6b23.zip
chromium_src-c772bf6640208a3251cd6929ba492238ff9a6b23.tar.gz
chromium_src-c772bf6640208a3251cd6929ba492238ff9a6b23.tar.bz2
Move glue/event_conversion.{h,cc} into the WebKit API implementation.
I also renamed the MakeFoo classes to FooBuilder so that it would be more clear at the call sites that you are dealing with a class. I then translated the ToBar functions to also be BarBuilder classes. I just did this for consistency with the FooBuilders. For reference, "Foo" refers to WebCore Platform*Event classes and "Bar" refers to WebInputEvent subclasses :-) R=jorlow BUG=none TEST=none Review URL: http://codereview.chromium.org/164524 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23425 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r--webkit/glue/webplugin_impl.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index 7bb8b94..1282971 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -58,8 +58,8 @@
#include "webkit/api/public/WebURLLoader.h"
#include "webkit/api/public/WebURLLoaderClient.h"
#include "webkit/api/public/WebURLResponse.h"
+#include "webkit/api/src/WebInputEventConversion.h"
#include "webkit/glue/chrome_client_impl.h"
-#include "webkit/glue/event_conversion.h"
#include "webkit/glue/glue_util.h"
#include "webkit/glue/multipart_response_delegate.h"
#include "webkit/glue/webkit_glue.h"
@@ -76,7 +76,9 @@ using WebKit::WebData;
using WebKit::WebHTTPBody;
using WebKit::WebInputEvent;
using WebKit::WebKeyboardEvent;
+using WebKit::WebKeyboardEventBuilder;
using WebKit::WebMouseEvent;
+using WebKit::WebMouseEventBuilder;
using WebKit::WebString;
using WebKit::WebURLError;
using WebKit::WebURLLoader;
@@ -872,8 +874,8 @@ void WebPluginImpl::handleMouseEvent(WebCore::MouseEvent* event) {
// in the call to HandleEvent. See http://b/issue?id=1362948
WebCore::FrameView* parent_view = static_cast<WebCore::FrameView*>(parent());
- WebMouseEvent web_event;
- if (!ToWebMouseEvent(*parent_view, *event, &web_event))
+ WebMouseEventBuilder web_event(parent_view, *event);
+ if (web_event.type == WebInputEvent::Undefined)
return;
if (event->type() == WebCore::eventNames().mousedownEvent) {
@@ -907,8 +909,8 @@ void WebPluginImpl::handleMouseEvent(WebCore::MouseEvent* event) {
}
void WebPluginImpl::handleKeyboardEvent(WebCore::KeyboardEvent* event) {
- WebKeyboardEvent web_event;
- if (!ToWebKeyboardEvent(*event, &web_event))
+ WebKeyboardEventBuilder web_event(*event);
+ if (web_event.type == WebInputEvent::Undefined)
return;
// TODO(pkasting): http://b/1119691 See above.
WebCursorInfo cursor_info;