Changeset 69570 in webkit
- Timestamp:
- Oct 12, 2010 4:14:41 AM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r69559 r69570 1 2010-10-12 Juha Savolainen <juha.savolainen@weego.fi> 2 3 Reviewed by Antti Koivisto. 4 5 [Qt] Adding Qt WebKit2 API for zooming. 6 https://bugs.webkit.org/show_bug.cgi?id=47539 7 8 Adding zoom methods to QWKPage. 9 10 * UIProcess/API/qt/qwkpage.cpp: 11 (QWKPage::textZoomFactor): Added 12 (QWKPage::setTextZoomFactor): Added 13 (QWKPage::pageZoomFactor): Added 14 (QWKPage::setPageZoomFactor): Added 15 (QWKPage::setPageAndTextZoomFactors): Added 16 * UIProcess/API/qt/qwkpage.h: 17 1 18 2010-10-11 Brady Eidson <beidson@apple.com> 2 19 -
trunk/WebKit2/UIProcess/API/qt/qwkpage.cpp
r69508 r69570 438 438 } 439 439 440 qreal QWKPage::textZoomFactor() const 441 { 442 return WKPageGetTextZoomFactor(pageRef()); 443 } 444 445 void QWKPage::setTextZoomFactor(qreal zoomFactor) 446 { 447 WKPageSetTextZoomFactor(pageRef(), zoomFactor); 448 } 449 450 qreal QWKPage::pageZoomFactor() const 451 { 452 return WKPageGetPageZoomFactor(pageRef()); 453 } 454 455 void QWKPage::setPageZoomFactor(qreal zoomFactor) 456 { 457 WKPageSetPageZoomFactor(pageRef(), zoomFactor); 458 } 459 460 void QWKPage::setPageAndTextZoomFactors(qreal pageZoomFactor, qreal textZoomFactor) 461 { 462 WKPageSetPageAndTextZoomFactors(pageRef(), pageZoomFactor, textZoomFactor); 463 } 464 440 465 #ifndef QT_NO_ACTION 441 466 void QWKPage::triggerAction(WebAction action, bool) -
trunk/WebKit2/UIProcess/API/qt/qwkpage.h
r69490 r69570 90 90 void setCustomUserAgent(const QString&); 91 91 92 qreal textZoomFactor() const; 93 qreal pageZoomFactor() const; 94 void setTextZoomFactor(qreal zoomFactor); 95 void setPageZoomFactor(qreal zoomFactor); 96 void setPageAndTextZoomFactors(qreal pageZoomFactor, qreal textZoomFactor); 97 92 98 public: 93 99 Q_SIGNAL void statusBarMessage(const QString&);
Note: See TracChangeset
for help on using the changeset viewer.