~osomon/oxide/i18n

« back to all changes in this revision

Viewing changes to qt/core/browser/oxide_qt_render_widget_host_view.h

  • Committer: Olivier Tilloy
  • Date: 2014-04-08 10:03:11 UTC
  • mfrom: (312.2.173 oxide)
  • Revision ID: olivier.tilloy@canonical.com-20140408100311-b3zb7q1jfrevbrf1
Merge the latest changes from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
                       RenderWidgetHostViewDelegate* delegate);
55
55
  virtual ~RenderWidgetHostView();
56
56
 
 
57
  void Init(oxide::WebView* view) FINAL;
 
58
 
 
59
  static void GetWebScreenInfoFromQScreen(QScreen* screen, blink::WebScreenInfo* result);
 
60
 
 
61
  gfx::Rect GetViewBounds() const FINAL;
 
62
  gfx::Size GetPhysicalBackingSize() const FINAL;
 
63
 
 
64
  void SetSize(const gfx::Size& size) FINAL;
 
65
 
 
66
  float GetDeviceScaleFactor() const;
 
67
 
 
68
  void HandleFocusEvent(QFocusEvent* event);
 
69
  void HandleKeyEvent(QKeyEvent* event);
 
70
  void HandleMouseEvent(QMouseEvent* event);
 
71
  void HandleWheelEvent(QWheelEvent* event);
 
72
  void HandleInputMethodEvent(QInputMethodEvent* event);
 
73
  void HandleTouchEvent(QTouchEvent* event);
 
74
 
 
75
  void DidUpdate(bool skipped);
 
76
 
 
77
  const QPixmap* GetBackingStore();
 
78
 
 
79
  QVariant InputMethodQuery(Qt::InputMethodQuery query) const;
 
80
 
 
81
 private:
57
82
  static float GetDeviceScaleFactorFromQScreen(QScreen* screen);
58
 
  static void GetWebScreenInfoFromQScreen(QScreen* screen, blink::WebScreenInfo* result);
59
83
 
60
84
  void Blur() FINAL;
61
85
  void Focus() FINAL;
65
89
  void Hide() FINAL;
66
90
  bool IsShowing() FINAL;
67
91
 
68
 
  gfx::Rect GetViewBounds() const FINAL;
69
 
  gfx::Size GetPhysicalBackingSize() const FINAL;
70
 
 
71
 
  void SetSize(const gfx::Size& size) FINAL;
72
 
 
73
92
  content::BackingStore* AllocBackingStore(const gfx::Size& size) FINAL;
74
93
 
75
 
  float GetDeviceScaleFactor() const;
76
94
  void GetScreenInfo(blink::WebScreenInfo* results) FINAL;
77
95
 
78
96
  gfx::Rect GetBoundsInRootWindow() FINAL;
83
101
  void ImeCancelComposition() FINAL;
84
102
  void FocusedNodeChanged(bool is_editable_node) FINAL;
85
103
 
86
 
  void HandleFocusEvent(QFocusEvent* event);
87
 
  void HandleKeyEvent(QKeyEvent* event);
88
 
  void HandleMouseEvent(QMouseEvent* event);
89
 
  void HandleWheelEvent(QWheelEvent* event);
90
 
  void HandleInputMethodEvent(QInputMethodEvent* event);
91
 
  void HandleTouchEvent(QTouchEvent* event);
92
 
 
93
 
  void DidUpdate(bool skipped);
94
 
 
95
 
  const QPixmap* GetBackingStore();
96
 
 
97
 
  QVariant InputMethodQuery(Qt::InputMethodQuery query) const;
98
 
 
99
 
 private:
100
104
  void Paint(const gfx::Rect& rect) FINAL;
101
105
  void BuffersSwapped() FINAL;
102
106