blob: 712eef732553b3b3c8003b76fa8004241c965015 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef RENDER_WIDGET_HOST_VIEW_QT_DELEGATE_QUICKWINDOW_H
#define RENDER_WIDGET_HOST_VIEW_QT_DELEGATE_QUICKWINDOW_H
#include "render_widget_host_view_qt_delegate.h"
#include "render_widget_host_view_qt_delegate_item.h"
#include <QtCore/qpointer.h>
#include <QtQuick/qquickwindow.h>
// silence syncqt
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
namespace QtWebEngineCore {
class RenderWidgetHostViewQtDelegateQuickWindow : public QQuickWindow , public WidgetDelegate {
public:
RenderWidgetHostViewQtDelegateQuickWindow(RenderWidgetHostViewQtDelegateItem *realDelegate,
QWindow *parent);
~RenderWidgetHostViewQtDelegateQuickWindow();
void InitAsPopup(const QRect &screenRect) override;
void SetClearColor(const QColor &) override;
bool ActiveFocusOnPress() override;
void MoveWindow(const QPoint &) override;
void Bind(WebContentsAdapterClient *) override;
void Unbind() override;
void Destroy() override;
void Resize(int width, int height) override;
void setVirtualParent(QQuickItem *virtualParent);
private:
QPointer<RenderWidgetHostViewQtDelegateItem> m_realDelegate;
QQuickItem *m_virtualParent;
QRect m_rect;
bool m_rotated;
};
} // namespace QtWebEngineCore
#endif // RENDER_WIDGET_HOST_VIEW_QT_DELEGATE_QUICKWINDOW_H
|