1// Copyright (C) 2015 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QNATIVEVIEWCONTROLLER_P_H
5#define QNATIVEVIEWCONTROLLER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qwebview_global.h"
19#include <QtCore/qrect.h>
20#include <QtGui/qwindow.h>
21#include <QtCore/qpointer.h>
22#include <QtCore/private/qglobal_p.h>
23
24QT_BEGIN_NAMESPACE
25
26class QNativeViewController
27{
28public:
29 virtual ~QNativeViewController() {}
30 virtual void setParentView(QObject *view) = 0;
31 virtual QObject *parentView() const = 0;
32 virtual void setGeometry(const QRect &geometry) = 0;
33 virtual void setVisibility(QWindow::Visibility visibility) = 0;
34 virtual void setVisible(bool visible) = 0;
35 virtual void init() { }
36 virtual void setFocus(bool focus) { Q_UNUSED(focus); }
37 virtual void updatePolish() { }
38};
39
40QT_END_NAMESPACE
41
42#endif // QNATIVEVIEWCONTROLLER_P_H
43
44

source code of qtwebview/src/webview/qnativeviewcontroller_p.h