equal
deleted
inserted
replaced
20 */ |
20 */ |
21 |
21 |
22 #ifndef __ZOOMMETADATA_H__ |
22 #ifndef __ZOOMMETADATA_H__ |
23 #define __ZOOMMETADATA_H__ |
23 #define __ZOOMMETADATA_H__ |
24 |
24 |
|
25 #ifdef BEDROCK_TILED_BACKING_STORE |
|
26 #include <QRectF> |
|
27 #include <QString> |
|
28 #endif |
|
29 |
25 // To store the view port proeperties that affect zoom set through meta data. |
30 // To store the view port proeperties that affect zoom set through meta data. |
26 // This is available in the main frame of the page but to avoid parsing the meta |
31 // This is available in the main frame of the page but to avoid parsing the meta |
27 // data again, store it |
32 // data again, store it |
28 |
33 |
29 struct ZoomMetaData{ |
34 struct ZoomMetaData{ |
37 qreal initialScale; |
42 qreal initialScale; |
38 */ |
43 */ |
39 qreal minScale; |
44 qreal minScale; |
40 qreal maxScale; |
45 qreal maxScale; |
41 bool userScalable; |
46 bool userScalable; |
42 |
47 #ifdef BEDROCK_TILED_BACKING_STORE |
|
48 qreal initialScale; |
|
49 QRectF rect; |
|
50 QRectF webViewSize; |
|
51 qreal scale; |
|
52 QSizeF viewportSize; |
|
53 QString m_specifiedWidth; |
|
54 QString m_specifiedHeight; |
|
55 #endif |
43 }; |
56 }; |
44 #endif //__ZOOMMETADATA_H__ |
57 #endif //__ZOOMMETADATA_H__ |