Skip to content
  • andersca@apple.com's avatar
    WebCore: · 4cb90be2
    andersca@apple.com authored
    2009-03-13  Anders Carlsson  <andersca@apple.com>
    
            Reviewed by Dan Bernstein.
    
            <rdar://problem/6610666> Revise the Cocoa event model text API
            
            Add a NPCocoaEventTextInput event type. Remove the text input variables.
            
            * bridge/npapi.h:
            (_NPCocoaEvent::):
    
    WebKit:
    
    2009-03-13  Anders Carlsson  <andersca@apple.com>
    
            Reviewed by Dan Bernstein.
    
            <rdar://problem/6610666> Revise the Cocoa event model text API
            
            Remove nptextinput.h
            
            * WebKit.xcodeproj/project.pbxproj:
    
    WebKit/mac:
    
    2009-03-13  Anders Carlsson  <andersca@apple.com>
    
            Reviewed by Dan Bernstein.
    
            <rdar://problem/6610666> Revise the Cocoa event model text API
    
            Replace the text input API with a simpler API that uses a separate text input window.
            
            * Plugins/WebNetscapePluginEventHandlerCocoa.h:
            * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
            (WebNetscapePluginEventHandlerCocoa::WebNetscapePluginEventHandlerCocoa):
            Initialize m_keyEventHandler to 0.
            
            (WebNetscapePluginEventHandlerCocoa::keyDown):
            If the plug-in returns 0 from NPP_HandleEvent, pass the event to the TSM machinery.
            
            (WebNetscapePluginEventHandlerCocoa::focusChanged):
            Install/remove the key event handler as needed.
            
            (WebNetscapePluginEventHandlerCocoa::handleTSMEvent):
            Get the text and send a TextInput event.
            
            * Plugins/WebNetscapePluginView.h:
            * Plugins/WebNetscapePluginView.mm:
            Remove the old text input API.
            
            (-[WebNetscapePluginView inputContext]):
            Always return nil here.
            
            * Plugins/npapi.mm:
            * Plugins/nptextinput.h: Removed.
    
    WebKitTools:
    
    2009-03-13  Anders Carlsson  <andersca@apple.com>
    
            Reviewed by Dan Bernstein.
    
            <rdar://problem/6610666> Revise the Cocoa event model text API
    
            Add a case statement for NPCocoaEventTextInput.
            
            * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp:
            (handleEventCocoa):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4cb90be2