~osomon/oxide/override-touchUngrabEvent

« back to all changes in this revision

Viewing changes to qt/core/glue/oxide_qt_web_view_proxy_client.h

  • 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:
1
1
// vim:expandtab:shiftwidth=2:tabstop=2:
2
 
// Copyright (C) 2013-2015 Canonical Ltd.
 
2
// Copyright (C) 2013-2016 Canonical Ltd.
3
3
 
4
4
// This library is free software; you can redistribute it and/or
5
5
// modify it under the terms of the GNU Lesser General Public
19
19
#define _OXIDE_QT_CORE_GLUE_WEB_VIEW_PROXY_CLIENT_H_
20
20
 
21
21
#include <QRect>
 
22
#include <QRectF>
22
23
#include <QtGlobal>
23
24
 
24
25
#include "qt/core/glue/oxide_qt_javascript_dialog_proxy_client.h"
48
49
class FilePickerProxy;
49
50
class FilePickerProxyClient;
50
51
class JavaScriptDialogProxy;
 
52
class TouchHandleDrawableProxy;
51
53
class WebContextMenuProxy;
52
54
class WebContextMenuProxyClient;
53
55
class WebFrameProxy;
82
84
  virtual JavaScriptDialogProxy* CreateBeforeUnloadDialog(
83
85
      JavaScriptDialogProxyClient* client) = 0;
84
86
  virtual FilePickerProxy* CreateFilePicker(FilePickerProxyClient* client) = 0;
 
87
  virtual TouchHandleDrawableProxy* CreateTouchHandleDrawable() = 0;
85
88
 
86
89
  virtual void WebProcessStatusChanged() = 0;
87
90
 
97
100
  virtual void NavigationListPruned(bool from_front, int count) = 0;
98
101
  virtual void NavigationEntryChanged(int index) = 0;
99
102
 
 
103
  virtual void TouchSelectionChanged(bool active, QRectF bounds) = 0;
 
104
 
100
105
  virtual void CreateWebFrame(WebFrameProxy* proxy) = 0;
101
106
 
102
107
  virtual QScreen* GetScreen() const = 0;
151
156
  virtual void CloseRequested() = 0;
152
157
 
153
158
  virtual void TargetURLChanged() = 0;
 
159
  
 
160
  virtual void OnEditingCapabilitiesChanged() = 0;
154
161
};
155
162
 
156
163
} // namespace qt