~osomon/oxide/override-touchUngrabEvent

« back to all changes in this revision

Viewing changes to qt/core/glue/oxide_qt_web_view_proxy.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
49
49
class OxideQFindController;
50
50
class OxideQNewViewRequest;
51
51
class OxideQSecurityStatus;
 
52
class OxideQTouchSelectionController;
52
53
class OxideQWebPreferences;
53
54
 
54
55
namespace oxide {
84
85
  WEB_PROCESS_CRASHED
85
86
};
86
87
 
 
88
enum EditCapabilityFlags {
 
89
  NO_CAPABILITY = 0,
 
90
  UNDO_CAPABILITY = 1 << 0,
 
91
  REDO_CAPABILITY = 1 << 1,
 
92
  CUT_CAPABILITY = 1 << 2,
 
93
  COPY_CAPABILITY = 1 << 3,
 
94
  PASTE_CAPABILITY = 1 << 4,
 
95
  ERASE_CAPABILITY = 1 << 5,
 
96
  SELECT_ALL_CAPABILITY = 1 << 6
 
97
};
 
98
 
87
99
enum EditingCommands {
88
100
  EDITING_COMMAND_UNDO,
89
101
  EDITING_COMMAND_REDO,
222
234
 
223
235
  virtual void prepareToClose() = 0;
224
236
 
225
 
  virtual int locationBarHeight() = 0;
 
237
  virtual int locationBarHeight() const = 0;
226
238
  virtual void setLocationBarHeight(int height) = 0;
227
 
  virtual int locationBarOffsetPix() = 0;
228
 
  virtual int locationBarContentOffsetPix() = 0;
 
239
  virtual int locationBarOffsetPix() const = 0;
 
240
  virtual int locationBarContentOffsetPix() const = 0;
229
241
  virtual LocationBarMode locationBarMode() const = 0;
230
242
  virtual void setLocationBarMode(LocationBarMode mode) = 0;
231
243
  virtual bool locationBarAnimated() const = 0;
239
251
 
240
252
  virtual QUrl targetUrl() const = 0;
241
253
 
 
254
  virtual EditCapabilityFlags editFlags() const = 0;
 
255
 
242
256
  virtual void teardownFrameTree() = 0;
243
257
};
244
258