summaryrefslogtreecommitdiffstats
path: root/src/qlibwindowmanager.h
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2018-07-02 18:02:57 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-07-09 12:57:40 +0000
commitd5d31fe493c88756831e7cf36255acdccbbdde98 (patch)
tree86947cd7cbecada9f87c2ea807547c6327dddfd0 /src/qlibwindowmanager.h
parentee162e3e74baa74411441304edf8389eeab04995 (diff)
rename WindowManager APIs as follows: - activateSurface -> activateWindow - deactivateSurface -> deactivateWindow The "surface" means information of display material frame buffer anaged by Graphics Subsystem (Weston). And the "window" means the right to draw on display. The "surface" is physical information and used inside WindowManager. So we think it is not good for "surface" to be included in API name. These APIs provide the function which is to activate/deactivate the right to draw for the applications. So we change to "activateWindow/deactivateWindow". We plan to delete the old API by GG. Therefore the applications can use old APIs until GG, but the warning "-Wdeprecated-declarations" is occured when compile. After GG, old APIs can not be used. If use it, the error is occured when compile. Bug-AGL: SPEC-1565 Change-Id: Ic2e8893146fd41beb8f261a71a7e3b7c683d7838 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/qlibwindowmanager.h')
-rw-r--r--src/qlibwindowmanager.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/qlibwindowmanager.h b/src/qlibwindowmanager.h
index 9e80abb..8fb653d 100644
--- a/src/qlibwindowmanager.h
+++ b/src/qlibwindowmanager.h
@@ -54,14 +54,22 @@ public:
// WM API
Q_INVOKABLE int requestSurface(const QString &label);
- Q_INVOKABLE int activateSurface(const QString &label);
- Q_INVOKABLE int activateSurface(const QString &label, const QString &drawing_area);
- Q_INVOKABLE int deactivateSurface(const QString &label);
+ Q_INVOKABLE int activateWindow(const QString &label);
+ Q_INVOKABLE int activateWindow(const QString &label, const QString &drawing_area);
+ Q_INVOKABLE int deactivateWindow(const QString &label);
Q_INVOKABLE int endDraw(const QString &label);
void set_event_handler(enum QEventType et, handler_fun f);
+ // These APIs are deprecated, please use new API
+ THIS_FUNCTION_IS_DEPRECATED(Q_INVOKABLE int activateSurface(const QString &label));
+ THIS_FUNCTION_IS_DEPRECATED(Q_INVOKABLE int activateSurface(const QString &label, const QString &drawing_area));
+ THIS_FUNCTION_IS_DEPRECATED(Q_INVOKABLE int deactivateSurface(const QString &label));
+
public slots:
- void slotActivateSurface();
+ void slotActivateWindow();
+
+ // This API is deprecated, please use new API
+ THIS_FUNCTION_IS_DEPRECATED(void slotActivateSurface());
private:
LibWindowmanager* wm;