Changeset 561 for trunk/src/3rdparty/webkit/WebKit/qt/Api/qwebframe.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/3rdparty/webkit/WebKit/qt/Api/qwebframe.h (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/3rdparty/webkit/WebKit/qt/Api/qwebframe.h
r2 r561 1 1 /* 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 3 Copyright (C) 2007 Staikos Computing Services Inc. 4 4 … … 50 50 class QWebHistoryItem; 51 51 class QWebSecurityOrigin; 52 53 52 54 53 55 namespace WebCore { … … 60 62 class QWebFrame; 61 63 62 class QWEBKIT_EXPORT QWebHitTestResult 63 { 64 class QWEBKIT_EXPORT QWebHitTestResult { 64 65 public: 65 66 QWebHitTestResult(); … … 72 73 QPoint pos() const; 73 74 QRect boundingRect() const; 75 74 76 QString title() const; 75 77 … … 78 80 QUrl linkTitle() const; 79 81 QWebFrame *linkTargetFrame() const; 82 80 83 81 84 QString alternateText() const; // for img, area, input and applet … … 86 89 bool isContentEditable() const; 87 90 bool isContentSelected() const; 91 92 88 93 89 94 QWebFrame *frame() const; … … 98 103 }; 99 104 100 class QWEBKIT_EXPORT QWebFrame : public QObject 101 { 105 class QWEBKIT_EXPORT QWebFrame : public QObject { 102 106 Q_OBJECT 103 107 Q_PROPERTY(qreal textSizeMultiplier READ textSizeMultiplier WRITE setTextSizeMultiplier DESIGNABLE false) … … 105 109 Q_PROPERTY(QString title READ title) 106 110 Q_PROPERTY(QUrl url READ url WRITE setUrl) 111 112 107 113 Q_PROPERTY(QIcon icon READ icon) 108 114 Q_PROPERTY(QSize contentsSize READ contentsSize) 109 115 Q_PROPERTY(QPoint scrollPosition READ scrollPosition WRITE setScrollPosition) 116 110 117 private: 111 118 QWebFrame(QWebPage *parent, QWebFrameData *frameData); … … 136 143 void setUrl(const QUrl &url); 137 144 QUrl url() const; 145 146 138 147 QIcon icon() const; 139 148 QMultiMap<QString, QString> metaData() const; … … 151 160 int scrollBarMinimum(Qt::Orientation orientation) const; 152 161 int scrollBarMaximum(Qt::Orientation orientation) const; 162 153 163 154 164 void scroll(int, int); … … 156 166 void setScrollPosition(const QPoint &pos); 157 167 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()); 160 179 161 180 void setTextSizeMultiplier(qreal factor); … … 164 183 qreal zoomFactor() const; 165 184 void setZoomFactor(qreal factor); 185 186 187 166 188 167 189 QPoint pos() const; 168 190 QRect geometry() const; 169 191 QSize contentsSize() const; 192 193 194 195 170 196 171 197 QWebHitTestResult hitTestContent(const QPoint &pos) const; … … 191 217 192 218 void iconChanged(); 219 220 221 222 223 193 224 194 225 private:
Note:
See TracChangeset
for help on using the changeset viewer.
