~abreu-alexandre/oxide/vibrate

« back to all changes in this revision

Viewing changes to qt/core/browser/oxide_qt_web_view.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
86
86
 
87
87
  const oxide::SecurityStatus& GetSecurityStatus() const;
88
88
 
 
89
  float GetDeviceScaleFactor() const;
 
90
  int GetLocationBarContentOffsetPix() const;
 
91
 
89
92
 private:
90
93
  WebView(WebViewProxyClient* client,
91
94
          OxideQSecurityStatus* security_status);
92
95
 
93
 
  float GetDeviceScaleFactor() const;
94
 
 
95
96
  void CommonInit(OxideQFindController* find_controller);
96
97
 
97
98
  void EnsurePreferences();
150
151
      const std::string& user_agent) override;
151
152
  void HttpAuthenticationRequested(
152
153
      ResourceDispatcherHostLoginDelegate* login_delegate) override;
153
 
 
154
154
  bool ShouldHandleNavigation(const GURL& url,
155
155
                              WindowOpenDisposition disposition,
156
156
                              bool user_gesture) override;
163
163
      WindowOpenDisposition disposition,
164
164
      scoped_ptr<content::WebContents> contents) override;
165
165
  oxide::FilePicker* CreateFilePicker(content::RenderViewHost* rvh) override;
 
166
  ui::TouchHandleDrawable* CreateTouchHandleDrawable() const override;
 
167
  void TouchSelectionChanged(bool active,
 
168
                             const gfx::RectF& bounds) const override;
166
169
  void SwapCompositorFrame() override;
167
170
  void EvictCurrentFrame() override;
168
171
  oxide::InputMethodContext* GetInputMethodContext() const override;
172
175
  void PrepareToCloseResponseReceived(bool proceed) override;
173
176
  void CloseRequested() override;
174
177
  void TargetURLChanged() override;
 
178
  void OnEditingCapabilitiesChanged() override;
175
179
 
176
180
  // oxide::ScriptMessageTarget implementation
177
181
  size_t GetScriptMessageHandlerCount() const override;
271
275
 
272
276
  void prepareToClose() override;
273
277
 
274
 
  int locationBarHeight() override;
 
278
  int locationBarHeight() const override;
275
279
  void setLocationBarHeight(int height) override;
276
 
  int locationBarOffsetPix() override;
277
 
  int locationBarContentOffsetPix() override;
 
280
  int locationBarOffsetPix() const override;
 
281
  int locationBarContentOffsetPix() const override;
278
282
  LocationBarMode locationBarMode() const override;
279
283
  void setLocationBarMode(LocationBarMode mode) override;
280
284
  bool locationBarAnimated() const override;
288
292
 
289
293
  QUrl targetUrl() const override;
290
294
 
 
295
  EditCapabilityFlags editFlags() const override;
 
296
 
291
297
  void teardownFrameTree() override;
292
298
 
293
299
  // This must outlive |view_|