~osomon/oxide/override-touchUngrabEvent

« back to all changes in this revision

Viewing changes to qt/qmlplugin/oxide_qml_plugin.cc

  • Committer: Olivier Tilloy
  • Date: 2016-01-12 11:46:34 UTC
  • mfrom: (1272.2.38 touch-selection-api)
  • Revision ID: olivier.tilloy@canonical.com-20160112114634-u1t78baa0u4hfoha
Add a touch selection API, to allow embedders to display handles for resizing the current selection, and contextual actions for it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include "qt/quick/api/oxideqquickscriptmessage_p.h"
42
42
#include "qt/quick/api/oxideqquickscriptmessagehandler_p.h"
43
43
#include "qt/quick/api/oxideqquickscriptmessagerequest_p.h"
 
44
#include "qt/quick/api/oxideqquicktouchselectioncontroller_p.h"
44
45
#include "qt/quick/api/oxideqquickuserscript_p.h"
45
46
#include "qt/quick/api/oxideqquickwebcontext_p.h"
46
47
#include "qt/quick/api/oxideqquickwebcontextdelegateworker_p.h"
165
166
 
166
167
    qmlRegisterType<OxideQQuickWebView, 6>(uri, 1, 11, "WebView");
167
168
 
 
169
    qmlRegisterUncreatableType<OxideQQuickTouchSelectionController>(uri, 1, 12, "TouchSelectionController",
 
170
        "TouchSelectionController is accessed via WebView.touchSelectionController");
168
171
    qmlRegisterType<OxideQQuickWebView, 7>(uri, 1, 12, "WebView");
169
172
  }
170
173
};