Changeset 72603 in webkit


Ignore:
Timestamp:
Nov 23, 2010 6:24:06 AM (13 years ago)
Author:
Simon Hausmann
Message:

[Qt] Review the setUserPermission & friends API
https://bugs.webkit.org/show_bug.cgi?id=46810

Reviewed by Tor Arne Vestbø.

Renamed requestPermissionFromUser to featurePermissionRequested
and cancelRequestsForPermission to featurePermissionRequestCanceled.

WebKit/qt:

  • Api/qwebpage.h:
  • WebCoreSupport/GeolocationPermissionClientQt.cpp:

(WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
(WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):

  • WebCoreSupport/NotificationPresenterClientQt.cpp:

(WebCore::NotificationPresenterClientQt::requestPermission):
(WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):

WebKitTools:

  • DumpRenderTree/qt/DumpRenderTreeQt.cpp:

(WebCore::WebPage::WebPage):

  • QtTestBrowser/webpage.cpp:

(WebPage::WebPage):
(WebPage::featurePermissionRequestCanceled):

  • QtTestBrowser/webpage.h:
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebpage.h

    r72602 r72603  
    394394    void viewportChangeRequested();
    395395
    396     void requestPermissionFromUser(QWebFrame* frame, QWebPage::Feature feature);
    397     void cancelRequestsForPermission(QWebFrame* frame, QWebPage::Feature feature);
     396    void featurePermissionRequested(QWebFrame* frame, QWebPage::Feature feature);
     397    void featurePermissionRequestCanceled(QWebFrame* frame, QWebPage::Feature feature);
    398398
    399399protected:
  • trunk/WebKit/qt/ChangeLog

    r72602 r72603  
     12010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        Reviewed by Tor Arne Vestbø.
     4
     5        [Qt] Review the setUserPermission & friends API
     6        https://bugs.webkit.org/show_bug.cgi?id=46810
     7
     8        Renamed requestPermissionFromUser to featurePermissionRequested
     9        and cancelRequestsForPermission to featurePermissionRequestCanceled.
     10
     11        * Api/qwebpage.h:
     12        * WebCoreSupport/GeolocationPermissionClientQt.cpp:
     13        (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
     14        (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
     15        * WebCoreSupport/NotificationPresenterClientQt.cpp:
     16        (WebCore::NotificationPresenterClientQt::requestPermission):
     17        (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
     18
    1192010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
    220
  • trunk/WebKit/qt/WebCoreSupport/GeolocationPermissionClientQt.cpp

    r72601 r72603  
    6666
    6767    QWebPage* page = webFrame->page();
    68     emit page->requestPermissionFromUser(webFrame, QWebPage::Geolocation);
     68    emit page->featurePermissionRequested(webFrame, QWebPage::Geolocation);
    6969}
    7070
     
    7575
    7676    QWebPage* page = webFrame->page();
    77     emit page->cancelRequestsForPermission(webFrame, QWebPage::Geolocation);
     77    emit page->featurePermissionRequestCanceled(webFrame, QWebPage::Geolocation);
    7878}
    7979
  • trunk/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp

    r72601 r72603  
    329329        if (toPage(context) && toFrame(context)) {
    330330            m_pendingPermissionRequests.insert(context, info);
    331             emit toPage(context)->requestPermissionFromUser(toFrame(context), QWebPage::Notifications);
     331            emit toPage(context)->featurePermissionRequested(toFrame(context), QWebPage::Notifications);
    332332        }
    333333    }
     
    359359        printf("DESKTOP NOTIFICATION PERMISSION REQUEST CANCELLED: %s\n", QString(context->securityOrigin()->toString()).toUtf8().constData());
    360360
    361     emit page->cancelRequestsForPermission(frame, QWebPage::Notifications);
     361    emit page->featurePermissionRequestCanceled(frame, QWebPage::Notifications);
    362362}
    363363
  • trunk/WebKitTools/ChangeLog

    r72602 r72603  
     12010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        Reviewed by Tor Arne Vestbø.
     4
     5        [Qt] Review the setUserPermission & friends API
     6        https://bugs.webkit.org/show_bug.cgi?id=46810
     7
     8        Renamed requestPermissionFromUser to featurePermissionRequested
     9        and cancelRequestsForPermission to featurePermissionRequestCanceled.
     10
     11        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
     12        (WebCore::WebPage::WebPage):
     13        * QtTestBrowser/webpage.cpp:
     14        (WebPage::WebPage):
     15        (WebPage::featurePermissionRequestCanceled):
     16        * QtTestBrowser/webpage.h:
     17
    1182010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
    219
  • trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp

    r72602 r72603  
    159159    setPluginFactory(new TestPlugin(this));
    160160
    161     connect(this, SIGNAL(requestPermissionFromUser(QWebFrame*, QWebPage::Feature)), this, SLOT(requestPermission(QWebFrame*, QWebPage::Feature)));
    162     connect(this, SIGNAL(cancelRequestsForPermission(QWebFrame*, QWebPage::Feature)), this, SLOT(cancelPermission(QWebFrame*, QWebPage::Feature)));
     161    connect(this, SIGNAL(featurePermissionRequested(QWebFrame*, QWebPage::Feature)), this, SLOT(requestPermission(QWebFrame*, QWebPage::Feature)));
     162    connect(this, SIGNAL(featurePermissionRequestCanceled(QWebFrame*, QWebPage::Feature)), this, SLOT(cancelPermission(QWebFrame*, QWebPage::Feature)));
    163163}
    164164
  • trunk/WebKitTools/QtTestBrowser/webpage.cpp

    r72602 r72603  
    5151    connect(networkAccessManager(), SIGNAL(authenticationRequired(QNetworkReply*, QAuthenticator*)),
    5252            this, SLOT(authenticationRequired(QNetworkReply*, QAuthenticator*)));
    53     connect(this, SIGNAL(requestPermissionFromUser(QWebFrame*, QWebPage::Feature)), this, SLOT(requestPermission(QWebFrame*, QWebPage::Feature)));
    54     connect(this, SIGNAL(cancelRequestsForPermission(QWebFrame*, QWebPage::Feature)), this, SLOT(cancelRequestsForPermission(QWebFrame*, QWebPage::Feature)));
     53    connect(this, SIGNAL(featurePermissionRequested(QWebFrame*, QWebPage::Feature)), this, SLOT(requestPermission(QWebFrame*, QWebPage::Feature)));
     54    connect(this, SIGNAL(featurePermissionRequestCanceled(QWebFrame*, QWebPage::Feature)), this, SLOT(featurePermissionRequestCanceled(QWebFrame*, QWebPage::Feature)));
    5555}
    5656
     
    173173}
    174174
    175 void WebPage::cancelRequestsForPermission(QWebFrame*, QWebPage::Feature)
     175void WebPage::featurePermissionRequestCanceled(QWebFrame*, QWebPage::Feature)
    176176{
    177177}
  • trunk/WebKitTools/QtTestBrowser/webpage.h

    r72601 r72603  
    5959    void authenticationRequired(QNetworkReply*, QAuthenticator*);
    6060    void requestPermission(QWebFrame* frame, QWebPage::Feature feature);
    61     void cancelRequestsForPermission(QWebFrame* frame, QWebPage::Feature feature);
     61    void featurePermissionRequestCanceled(QWebFrame* frame, QWebPage::Feature feature);
    6262
    6363private:
Note: See TracChangeset for help on using the changeset viewer.