Falkon
Develop
Cross-platform Qt-based web browser
webhittestresult.h
Go to the documentation of this file.
1
/* ============================================================
2
* Falkon - Qt web browser
3
* Copyright (C) 2015-2016 David Rosca <nowrep@gmail.com>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* ============================================================ */
18
#ifndef WEBHITTESTRESULT_H
19
#define WEBHITTESTRESULT_H
20
21
#include <QUrl>
22
#include <QRect>
23
#include <QString>
24
#include <QVariantMap>
25
26
#include "
qzcommon.h
"
27
28
class
QWebEngineContextMenuRequest;
29
30
class
WebPage
;
31
32
class
FALKON_EXPORT
WebHitTestResult
33
{
34
public
:
35
explicit
WebHitTestResult
(
const
WebPage
*page,
const
QPoint &pos);
36
37
void
updateWithContextMenuData(
const
QWebEngineContextMenuRequest &data);
38
39
QUrl baseUrl()
const
;
40
QString alternateText()
const
;
41
QRect boundingRect()
const
;
42
QUrl imageUrl()
const
;
43
bool
isContentEditable()
const
;
44
bool
isContentSelected()
const
;
45
bool
isNull()
const
;
46
QString linkTitle()
const
;
47
QUrl linkUrl()
const
;
48
QUrl mediaUrl()
const
;
49
bool
mediaPaused()
const
;
50
bool
mediaMuted()
const
;
51
QPoint pos()
const
;
52
QPointF viewportPos()
const
;
53
QString tagName()
const
;
54
55
private
:
56
void
init(
const
QUrl &url,
const
QVariantMap &map);
57
58
bool
m_isNull;
59
QUrl m_baseUrl;
60
QString m_alternateText;
61
QRect m_boundingRect;
62
QUrl m_imageUrl;
63
bool
m_isContentEditable;
64
bool
m_isContentSelected;
65
QString m_linkTitle;
66
QUrl m_linkUrl;
67
QUrl m_mediaUrl;
68
bool
m_mediaPaused;
69
bool
m_mediaMuted;
70
QPoint m_pos;
71
QPointF m_viewportPos;
72
QString m_tagName;
73
};
74
75
#endif
// WEBHITTESTRESULT_H
WebHitTestResult
Definition:
webhittestresult.h:33
WebPage
Definition:
webpage.h:39
qzcommon.h
FALKON_EXPORT
#define FALKON_EXPORT
Definition:
qzcommon.h:28
src
lib
webengine
webhittestresult.h
Generated by
1.9.3