Changeset 167514 in webkit


Ignore:
Timestamp:
Apr 18, 2014 4:11:06 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Correct some issues small issues in WK2 file upload InjectedBundle APIs
https://bugs.webkit.org/show_bug.cgi?id=131852

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2014-04-18
Reviewed by Dan Bernstein.

  • WebProcess/InjectedBundle/API/APIInjectedBundlePageUIClient.h:

(API::InjectedBundle::PageUIClient::shouldGenerateFileForUpload):
The default return value, meaning no, should return the null string. The
result is checked later, and null string is a special value meaning no.

  • WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:

(WebKit::InjectedBundlePageUIClient::generateFileForUpload):
Pre-check for the correct client function we will use.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r167512 r167514  
     12014-04-18  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Correct some issues small issues in WK2 file upload InjectedBundle APIs
     4        https://bugs.webkit.org/show_bug.cgi?id=131852
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * WebProcess/InjectedBundle/API/APIInjectedBundlePageUIClient.h:
     9        (API::InjectedBundle::PageUIClient::shouldGenerateFileForUpload):
     10        The default return value, meaning no, should return the null string. The
     11        result is checked later, and null string is a special value meaning no.
     12
     13        * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
     14        (WebKit::InjectedBundlePageUIClient::generateFileForUpload):
     15        Pre-check for the correct client function we will use.
     16
    1172014-04-18  Andy Estes  <aestes@apple.com>
    218
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/APIInjectedBundlePageUIClient.h

    r166879 r167514  
    5757    virtual void pageDidScroll(WebKit::WebPage*) { }
    5858
    59     virtual WTF::String shouldGenerateFileForUpload(WebKit::WebPage*, const WTF::String& originalFilePath) { UNUSED_PARAM(originalFilePath); return emptyString(); }
     59    virtual WTF::String shouldGenerateFileForUpload(WebKit::WebPage*, const WTF::String& originalFilePath) { UNUSED_PARAM(originalFilePath); return WTF::String(); }
    6060    virtual WTF::String generateFileForUpload(WebKit::WebPage*, const WTF::String& originalFilePath) { UNUSED_PARAM(originalFilePath); return emptyString(); }
    6161
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp

    r166879 r167514  
    102102String InjectedBundlePageUIClient::generateFileForUpload(WebPage* page, const String& originalFilePath)
    103103{
    104     if (!m_client.shouldGenerateFileForUpload)
     104    if (!m_client.generateFileForUpload)
    105105        return String();
    106106    RefPtr<API::String> generatedFilePath = adoptRef(toImpl(m_client.generateFileForUpload(toAPI(page), toAPI(originalFilePath.impl()), m_client.base.clientInfo)));
Note: See TracChangeset for help on using the changeset viewer.