Changeset 102873 in webkit


Ignore:
Timestamp:
Dec 14, 2011 7:39:51 PM (12 years ago)
Author:
bashi@chromium.org
Message:

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

Adds getFormValue() to WebPluginContainerImpl as an implementation of PluginViewBase::getFormValue().

Reviewed by Darin Fisher.

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

    r102863 r102873  
     12011-12-14  Kenichi Ishibashi  <bashi@chromium.org>
     2
     3        [Chromium] Implement PluginViewBase::getFormValue
     4        https://bugs.webkit.org/show_bug.cgi?id=64434
     5
     6        Adds getFormValue() to WebPluginContainerImpl as an implementation of PluginViewBase::getFormValue().
     7
     8        Reviewed by Darin Fisher.
     9
     10        No new tests. No behavior change at this time. We should add a test for PPAPI after chromium supports the feature.
     11
     12        * public/WebPlugin.h: Added getFormValue().
     13        * src/WebPluginContainerImpl.cpp:
     14        (WebKit::WebPluginContainerImpl::getFormValue): Added.
     15        * src/WebPluginContainerImpl.h: Added getFormValue().
     16
    1172011-12-14  Sami Kyostila  <skyostil@chromium.org>
    218
  • trunk/Source/WebKit/chromium/public/WebPlugin.h

    r101224 r102873  
    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

    r102250 r102873  
    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

    r101035 r102873  
    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.