25 #include "brtglobal.h" |
25 #include "brtglobal.h" |
26 |
26 |
27 #include <QWebPage> |
27 #include <QWebPage> |
28 #include "wrtbrowsercontainer_p.h" |
28 #include "wrtbrowsercontainer_p.h" |
29 #include "wrtBrowserDefs.h" |
29 #include "wrtBrowserDefs.h" |
30 #include "ZoomMetaData.h" |
|
31 |
30 |
32 |
31 |
33 #include <QWidget> |
32 #include <QWidget> |
34 #include <QNetworkProxy> |
33 #include <QNetworkProxy> |
35 |
34 |
36 struct BrowserPageFactory; |
35 struct BrowserPageFactory; |
37 struct ZoomMetaData; |
36 class WebPageData; |
38 class QWebFrame; |
37 class QWebFrame; |
39 class QWebHistoryItem; |
38 class QWebHistoryItem; |
40 class QNetworkReply; |
39 class QNetworkReply; |
41 class QAuthenticator; |
40 class QAuthenticator; |
42 class QNetworkProxy; |
41 class QNetworkProxy; |
69 |
68 |
70 QGraphicsWidget* webWidget() const; |
69 QGraphicsWidget* webWidget() const; |
71 void setWebWidget(QGraphicsWidget* view); |
70 void setWebWidget(QGraphicsWidget* view); |
72 SchemeHandler* schemeHandler() const; |
71 SchemeHandler* schemeHandler() const; |
73 |
72 |
74 QImage pageThumbnail(qreal scaleX, qreal scaley); |
73 QImage thumbnail(QSize s); |
|
74 QImage pageThumbnail(qreal scaleX, qreal scaleY); |
75 |
75 |
76 void setPageFactory(BrowserPageFactory* f); |
76 void setPageFactory(BrowserPageFactory* f); |
77 |
77 |
78 QString pageTitle(); |
78 QString pageTitle(); |
79 |
79 |
80 int secureState(); |
80 int secureState(); |
81 WRT::LoadController * loadController( ) {return d->m_loadController;} |
81 WRT::LoadController * loadController( ) {return d->m_loadController;} |
82 |
82 |
83 ZoomMetaData pageZoomMetaData() ; |
83 WebPageData* pageZoomMetaData() ; |
84 void setPageZoomMetaData( ZoomMetaData zoomData ); |
84 void setPageZoomMetaData(const WebPageData &zoomData); |
|
85 void requestPageDataUpdate(); |
85 |
86 |
86 /* Indicates whether this is a blank window with no page loaded*/ |
87 /* Indicates whether this is a blank window with no page loaded*/ |
87 bool emptyWindow(); |
88 bool emptyWindow(); |
88 bool restoreSession(); |
89 bool restoreSession(); |
89 |
90 |
102 void createNewWindow(WrtBrowserContainer* page); |
103 void createNewWindow(WrtBrowserContainer* page); |
103 void pageScrollPositionZero(); |
104 void pageScrollPositionZero(); |
104 |
105 |
105 void secureStateChange(int); |
106 void secureStateChange(int); |
106 |
107 |
|
108 #ifdef QT_GEOLOCATION |
|
109 void requestGeolocationPermission(QWebFrame* frame, QWebPage::PermissionDomain permissionDomain, QString domain); |
|
110 #endif // QT_GEOLOCATION |
|
111 |
107 public slots: |
112 public slots: |
108 void savePageDataToHistoryItem(QWebFrame*, QWebHistoryItem* item); |
113 void savePageDataToHistoryItem(QWebFrame*, QWebHistoryItem* item); |
109 void slotAuthenticationRequired(QNetworkReply *, QAuthenticator *); |
114 void slotAuthenticationRequired(QNetworkReply *, QAuthenticator *); |
110 void slotProxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *); |
115 void slotProxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *); |
111 |
116 |
|
117 #ifdef QT_GEOLOCATION |
|
118 void handleRequestPermissionFromUser(QWebFrame* frame, QWebPage::PermissionDomain domain); |
|
119 void setGeolocationPermission(QWebFrame* frame, QWebPage::PermissionDomain domain, |
|
120 bool permissionGranted, bool saveSetting); |
|
121 #endif // QT_GEOLOCATION |
|
122 |
112 private slots: |
123 private slots: |
113 void pageSecureState(int); |
124 void pageSecureState(int); |
114 |
125 |
115 private: |
126 private: |
116 WrtBrowserContainerPrivate* d; |
127 WrtBrowserContainerPrivate* d; |