Changeset 72603 in webkit
- Timestamp:
- Nov 23, 2010 6:24:06 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qwebpage.h
r72602 r72603 394 394 void viewportChangeRequested(); 395 395 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); 398 398 399 399 protected: -
trunk/WebKit/qt/ChangeLog
r72602 r72603 1 2010-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 1 19 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com> 2 20 -
trunk/WebKit/qt/WebCoreSupport/GeolocationPermissionClientQt.cpp
r72601 r72603 66 66 67 67 QWebPage* page = webFrame->page(); 68 emit page-> requestPermissionFromUser(webFrame, QWebPage::Geolocation);68 emit page->featurePermissionRequested(webFrame, QWebPage::Geolocation); 69 69 } 70 70 … … 75 75 76 76 QWebPage* page = webFrame->page(); 77 emit page-> cancelRequestsForPermission(webFrame, QWebPage::Geolocation);77 emit page->featurePermissionRequestCanceled(webFrame, QWebPage::Geolocation); 78 78 } 79 79 -
trunk/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp
r72601 r72603 329 329 if (toPage(context) && toFrame(context)) { 330 330 m_pendingPermissionRequests.insert(context, info); 331 emit toPage(context)-> requestPermissionFromUser(toFrame(context), QWebPage::Notifications);331 emit toPage(context)->featurePermissionRequested(toFrame(context), QWebPage::Notifications); 332 332 } 333 333 } … … 359 359 printf("DESKTOP NOTIFICATION PERMISSION REQUEST CANCELLED: %s\n", QString(context->securityOrigin()->toString()).toUtf8().constData()); 360 360 361 emit page-> cancelRequestsForPermission(frame, QWebPage::Notifications);361 emit page->featurePermissionRequestCanceled(frame, QWebPage::Notifications); 362 362 } 363 363 -
trunk/WebKitTools/ChangeLog
r72602 r72603 1 2010-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 1 18 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com> 2 19 -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
r72602 r72603 159 159 setPluginFactory(new TestPlugin(this)); 160 160 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))); 163 163 } 164 164 -
trunk/WebKitTools/QtTestBrowser/webpage.cpp
r72602 r72603 51 51 connect(networkAccessManager(), SIGNAL(authenticationRequired(QNetworkReply*, QAuthenticator*)), 52 52 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))); 55 55 } 56 56 … … 173 173 } 174 174 175 void WebPage:: cancelRequestsForPermission(QWebFrame*, QWebPage::Feature)175 void WebPage::featurePermissionRequestCanceled(QWebFrame*, QWebPage::Feature) 176 176 { 177 177 } -
trunk/WebKitTools/QtTestBrowser/webpage.h
r72601 r72603 59 59 void authenticationRequired(QNetworkReply*, QAuthenticator*); 60 60 void requestPermission(QWebFrame* frame, QWebPage::Feature feature); 61 void cancelRequestsForPermission(QWebFrame* frame, QWebPage::Feature feature);61 void featurePermissionRequestCanceled(QWebFrame* frame, QWebPage::Feature feature); 62 62 63 63 private:
Note: See TracChangeset
for help on using the changeset viewer.