diff options
author | Derek Sollenberger <djsollen@google.com> | 2009-07-02 10:02:25 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2009-07-02 13:40:02 -0400 |
commit | 3a9f8eaff978cf1a11c725266c852f8d43755539 (patch) | |
tree | 20a1686b040124f3ef6b16e24b62855375226fc2 /WebCore/plugins | |
parent | fb02adff73f691c0eeaaa6fddb2b2349f30233a6 (diff) | |
download | external_webkit-3a9f8eaff978cf1a11c725266c852f8d43755539.zip external_webkit-3a9f8eaff978cf1a11c725266c852f8d43755539.tar.gz external_webkit-3a9f8eaff978cf1a11c725266c852f8d43755539.tar.bz2 |
added gain/loose focus support for plugins. (focus = eligible to receive user events)
Diffstat (limited to 'WebCore/plugins')
-rw-r--r-- | WebCore/plugins/android/PluginViewAndroid.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/WebCore/plugins/android/PluginViewAndroid.cpp b/WebCore/plugins/android/PluginViewAndroid.cpp index 30cafc5..5622744 100644 --- a/WebCore/plugins/android/PluginViewAndroid.cpp +++ b/WebCore/plugins/android/PluginViewAndroid.cpp @@ -237,17 +237,12 @@ void PluginView::handleTouchEvent(TouchEvent* event) void PluginView::handleMouseEvent(MouseEvent* event) { const AtomicString& type = event->type(); - bool isOut = (eventNames().mouseoutEvent == type); bool isUp = (eventNames().mouseupEvent == type); bool isDown = (eventNames().mousedownEvent == type); ANPEvent evt; - if (isOut) { - SkANP::InitEvent(&evt, kLifecycle_ANPEventType); - evt.data.lifecycle.action = kLooseFocus_ANPLifecycleAction; - } - else if (isUp || isDown) { + if (isUp || isDown) { SkANP::InitEvent(&evt, kMouse_ANPEventType); evt.data.mouse.action = isUp ? kUp_ANPMouseAction : kDown_ANPMouseAction; // these are relative to plugin |