Changeset 90742 in webkit


Ignore:
Timestamp:
Jul 11, 2011 7:03:44 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Patch by Noel Gordon <noel.gordon@gmail.com> on 2011-07-11
Reviewed by Adam Roben.

Source/WebCore:

Forward focus events to windowless plugins on the windows port.
https://bugs.webkit.org/show_bug.cgi?id=62375

  • plugins/win/PluginViewWin.cpp:

(WebCore::PluginView::setFocus): Forward focus events if the plugin is windowless.

LayoutTests:

New plugin/keyboard-events,mouse-events test expectations for the windows port.
https://bugs.webkit.org/show_bug.cgi?id=62375

  • platform/win/plugins/keyboard-events-expected.txt: Added.
  • platform/win/plugins/mouse-events-expected.txt: Updated.
Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r90741 r90742  
     12011-07-11  Noel Gordon  <noel.gordon@gmail.com>
     2
     3        Reviewed by Adam Roben.
     4
     5        New plugin/keyboard-events,mouse-events test expectations for the windows port.
     6        https://bugs.webkit.org/show_bug.cgi?id=62375
     7
     8        * platform/win/plugins/keyboard-events-expected.txt: Added.
     9        * platform/win/plugins/mouse-events-expected.txt: Updated.
     10
    1112011-07-11  Yael Aharon  <yael.aharon@nokia.com>
    212
  • trunk/LayoutTests/platform/win/plugins/mouse-events-expected.txt

    r88684 r90742  
     1CONSOLE MESSAGE: line 0: PLUGIN: getFocusEvent
    12CONSOLE MESSAGE: line 0: PLUGIN: mouseDown at (20, 20)
    23CONSOLE MESSAGE: line 0: PLUGIN: mouseUp at (20, 20)
  • trunk/Source/WebCore/ChangeLog

    r90737 r90742  
     12011-07-11  Noel Gordon  <noel.gordon@gmail.com>
     2
     3        Reviewed by Adam Roben.
     4
     5        Forward focus events to windowless plugins on the windows port.
     6        https://bugs.webkit.org/show_bug.cgi?id=62375
     7
     8        * plugins/win/PluginViewWin.cpp:
     9        (WebCore::PluginView::setFocus): Forward focus events if the plugin is windowless.
     10
    1112011-07-11  Shinya Kawanaka  <shinyak@google.com>
    212
  • trunk/Source/WebCore/plugins/win/PluginViewWin.cpp

    r89823 r90742  
    473473
    474474    Widget::setFocus(focused);
     475
     476    if (!m_plugin || m_isWindowed)
     477        return;
     478
     479    NPEvent npEvent;
     480
     481    npEvent.event = focused ? WM_SETFOCUS : WM_KILLFOCUS;
     482    npEvent.wParam = 0;
     483    npEvent.lParam = 0;
     484
     485    dispatchNPEvent(npEvent);
    475486}
    476487
Note: See TracChangeset for help on using the changeset viewer.