Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/3rdparty/webkit/WebKit/qt/Api/qwebframe.h

    r2 r561  
    11/*
    2     Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
     2    Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
    33    Copyright (C) 2007 Staikos Computing Services Inc.
    44
     
    5050class QWebHistoryItem;
    5151class QWebSecurityOrigin;
     52
     53
    5254
    5355namespace WebCore {
     
    6062class QWebFrame;
    6163
    62 class QWEBKIT_EXPORT QWebHitTestResult
    63 {
     64class QWEBKIT_EXPORT QWebHitTestResult {
    6465public:
    6566    QWebHitTestResult();
     
    7273    QPoint pos() const;
    7374    QRect boundingRect() const;
     75
    7476    QString title() const;
    7577
     
    7880    QUrl linkTitle() const;
    7981    QWebFrame *linkTargetFrame() const;
     82
    8083
    8184    QString alternateText() const; // for img, area, input and applet
     
    8689    bool isContentEditable() const;
    8790    bool isContentSelected() const;
     91
     92
    8893
    8994    QWebFrame *frame() const;
     
    98103};
    99104
    100 class QWEBKIT_EXPORT QWebFrame : public QObject
    101 {
     105class QWEBKIT_EXPORT QWebFrame : public QObject {
    102106    Q_OBJECT
    103107    Q_PROPERTY(qreal textSizeMultiplier READ textSizeMultiplier WRITE setTextSizeMultiplier DESIGNABLE false)
     
    105109    Q_PROPERTY(QString title READ title)
    106110    Q_PROPERTY(QUrl url READ url WRITE setUrl)
     111
     112
    107113    Q_PROPERTY(QIcon icon READ icon)
    108114    Q_PROPERTY(QSize contentsSize READ contentsSize)
    109115    Q_PROPERTY(QPoint scrollPosition READ scrollPosition WRITE setScrollPosition)
     116
    110117private:
    111118    QWebFrame(QWebPage *parent, QWebFrameData *frameData);
     
    136143    void setUrl(const QUrl &url);
    137144    QUrl url() const;
     145
     146
    138147    QIcon icon() const;
    139148    QMultiMap<QString, QString> metaData() const;
     
    151160    int scrollBarMinimum(Qt::Orientation orientation) const;
    152161    int scrollBarMaximum(Qt::Orientation orientation) const;
     162
    153163
    154164    void scroll(int, int);
     
    156166    void setScrollPosition(const QPoint &pos);
    157167
    158     void render(QPainter *painter, const QRegion &clip);
    159     void render(QPainter *painter);
     168    enum RenderLayer {
     169        ContentsLayer = 0x10,
     170        ScrollBarLayer = 0x20,
     171        PanIconLayer = 0x40,
     172
     173        AllLayers = 0xff
     174    };
     175
     176    void render(QPainter*);
     177    void render(QPainter*, const QRegion& clip);
     178    void render(QPainter*, RenderLayer layer, const QRegion& clip = QRegion());
    160179
    161180    void setTextSizeMultiplier(qreal factor);
     
    164183    qreal zoomFactor() const;
    165184    void setZoomFactor(qreal factor);
     185
     186
     187
    166188
    167189    QPoint pos() const;
    168190    QRect geometry() const;
    169191    QSize contentsSize() const;
     192
     193
     194
     195
    170196
    171197    QWebHitTestResult hitTestContent(const QPoint &pos) const;
     
    191217
    192218    void iconChanged();
     219
     220
     221
     222
     223
    193224
    194225private:
Note: See TracChangeset for help on using the changeset viewer.