Changeset 69570 in webkit


Ignore:
Timestamp:
Oct 12, 2010 4:14:41 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-12 Juha Savolainen <juha.savolainen@weego.fi>

Reviewed by Antti Koivisto.

[Qt] Adding Qt WebKit2 API for zooming.
https://bugs.webkit.org/show_bug.cgi?id=47539

Adding zoom methods to QWKPage.

  • UIProcess/API/qt/qwkpage.cpp: (QWKPage::textZoomFactor): Added (QWKPage::setTextZoomFactor): Added (QWKPage::pageZoomFactor): Added (QWKPage::setPageZoomFactor): Added (QWKPage::setPageAndTextZoomFactors): Added
  • UIProcess/API/qt/qwkpage.h:
Location:
trunk/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r69559 r69570  
     12010-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
    1182010-10-11  Brady Eidson  <beidson@apple.com>
    219
  • trunk/WebKit2/UIProcess/API/qt/qwkpage.cpp

    r69508 r69570  
    438438}
    439439
     440qreal QWKPage::textZoomFactor() const
     441{
     442    return WKPageGetTextZoomFactor(pageRef());
     443}
     444
     445void QWKPage::setTextZoomFactor(qreal zoomFactor)
     446{
     447    WKPageSetTextZoomFactor(pageRef(), zoomFactor);
     448}
     449
     450qreal QWKPage::pageZoomFactor() const
     451{
     452    return WKPageGetPageZoomFactor(pageRef());
     453}
     454
     455void QWKPage::setPageZoomFactor(qreal zoomFactor)
     456{
     457    WKPageSetPageZoomFactor(pageRef(), zoomFactor);
     458}
     459
     460void QWKPage::setPageAndTextZoomFactors(qreal pageZoomFactor, qreal textZoomFactor)
     461{
     462    WKPageSetPageAndTextZoomFactors(pageRef(), pageZoomFactor, textZoomFactor);
     463}
     464
    440465#ifndef QT_NO_ACTION
    441466void QWKPage::triggerAction(WebAction action, bool)
  • trunk/WebKit2/UIProcess/API/qt/qwkpage.h

    r69490 r69570  
    9090    void setCustomUserAgent(const QString&);
    9191
     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
    9298public:
    9399    Q_SIGNAL void statusBarMessage(const QString&);
Note: See TracChangeset for help on using the changeset viewer.