Changeset 103147 in webkit


Ignore:
Timestamp:
Dec 17, 2011 9:10:41 AM (12 years ago)
Author:
bashi@chromium.org
Message:

[Chromium] Implement PluginViewBase::getFormValue
https://bugs.webkit.org/show_bug.cgi?id=64434

Reviewed by Darin Fisher.

This patch was landed as r102873, but reverted because of Chromium Mac build failure.
The fix was landed as Chromium r114920. The patch should be safe to land.

No new tests. No behavior change at this time. We should add a test for PPAPI after chromium supports the feature.

  • public/WebPlugin.h: Added getFormValue().
  • src/WebPluginContainerImpl.cpp:

(WebKit::WebPluginContainerImpl::getFormValue): Added.

  • src/WebPluginContainerImpl.h: Added getFormValue().
Location:
trunk/Source/WebKit/chromium
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r103135 r103147  
     12011-12-17  Kenichi Ishibashi  <bashi@chromium.org>
     2
     3        [Chromium] Implement PluginViewBase::getFormValue
     4        https://bugs.webkit.org/show_bug.cgi?id=64434
     5
     6        Reviewed by Darin Fisher.
     7
     8        This patch was landed as r102873, but reverted because of Chromium Mac build failure.
     9        The fix was landed as Chromium r114920. The patch should be safe to land.
     10
     11        No new tests. No behavior change at this time. We should add a test for PPAPI after chromium supports the feature.
     12
     13        * public/WebPlugin.h: Added getFormValue().
     14        * src/WebPluginContainerImpl.cpp:
     15        (WebKit::WebPluginContainerImpl::getFormValue): Added.
     16        * src/WebPluginContainerImpl.h: Added getFormValue().
     17
    1182011-12-16  James Robinson  <jamesr@chromium.org>
    219
  • trunk/Source/WebKit/chromium/public/WebPlugin.h

    r102881 r103147  
    5858
    5959    virtual NPObject* scriptableObject() = 0;
     60
     61    // Returns true if the form submission value is successfully obtained
     62    // from the plugin. The value would be associated with the name attribute
     63    // of the corresponding object element.
     64    virtual bool getFormValue(WebString&) { return false; }
    6065
    6166    virtual void paint(WebCanvas*, const WebRect&) = 0;
  • trunk/Source/WebKit/chromium/src/WebPluginContainerImpl.cpp

    r102881 r103147  
    465465}
    466466
     467bool WebPluginContainerImpl::getFormValue(String& value)
     468{
     469    WebString webValue;
     470    if (m_webPlugin->getFormValue(webValue)) {
     471        value = webValue;
     472        return true;
     473    }
     474    return false;
     475}
     476
    467477void WebPluginContainerImpl::willDestroyPluginLoadObserver(WebPluginLoadObserver* observer)
    468478{
  • trunk/Source/WebKit/chromium/src/WebPluginContainerImpl.h

    r102881 r103147  
    3939#include <wtf/PassRefPtr.h>
    4040#include <wtf/Vector.h>
     41#include <wtf/text/WTFString.h>
    4142
    4243struct NPObject;
     
    7071        return adoptRef(new WebPluginContainerImpl(element, webPlugin));
    7172    }
     73
     74    // PluginViewBase methods
     75    virtual bool getFormValue(String&);
    7276
    7377    // Widget methods
Note: See TracChangeset for help on using the changeset viewer.