summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-06-27 19:54:18 +0200
committerAndras Becsi <andras.becsi@digia.com>2013-06-27 20:41:45 +0200
commit2df21ce79b3e53ed2228c19fcd8b652d23c89c79 (patch)
tree46e45b85793bd0761c7f99ccacddb26ea1ba6cfa
parent06d2af7d988e071a3c4c4dbc229f578d8f0331a4 (diff)
Add function stubs required to be reimplemented on Mac.
This commit only adds empty function stubs. All of these should be reevaluated and the QT_NOT_YET_IMPLEMENTED macro should be removed. Change-Id: I181fd89628cf84a421f54bbc5c31a544e04cf944 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
-rw-r--r--lib/render_widget_host_view_qt.h15
-rw-r--r--lib/web_contents_view_qt.h7
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/render_widget_host_view_qt.h b/lib/render_widget_host_view_qt.h
index 1688e1e7f..20c2521f3 100644
--- a/lib/render_widget_host_view_qt.h
+++ b/lib/render_widget_host_view_qt.h
@@ -131,6 +131,21 @@ public:
void handleKeyEvent(QKeyEvent*);
void handleWheelEvent(QWheelEvent*);
void handleFocusEvent(QFocusEvent*);
+
+#if defined(OS_MACOSX)
+ virtual void SetTakesFocusOnlyOnMouseDown(bool flag) { QT_NOT_YET_IMPLEMENTED }
+ virtual void SetActive(bool active) { QT_NOT_YET_IMPLEMENTED }
+ virtual bool IsSpeaking() const { QT_NOT_YET_IMPLEMENTED; return false; }
+ virtual void SpeakSelection() { QT_NOT_YET_IMPLEMENTED }
+ virtual bool PostProcessEventForPluginIme(const content::NativeWebKeyboardEvent& event) { QT_NOT_YET_IMPLEMENTED; return false; }
+ virtual void AboutToWaitForBackingStoreMsg() { QT_NOT_YET_IMPLEMENTED }
+ virtual void StopSpeaking() { QT_NOT_YET_IMPLEMENTED }
+ virtual void SetWindowVisibility(bool visible) { QT_NOT_YET_IMPLEMENTED }
+ virtual bool SupportsSpeech() const { QT_NOT_YET_IMPLEMENTED; return false; }
+ virtual void ShowDefinitionForSelection() { QT_NOT_YET_IMPLEMENTED }
+ virtual void WindowFrameChanged() { QT_NOT_YET_IMPLEMENTED }
+#endif // defined(OS_MACOSX)
+
private:
void Paint(const gfx::Rect& damage_rect);
diff --git a/lib/web_contents_view_qt.h b/lib/web_contents_view_qt.h
index d55674ac7..3913bd535 100644
--- a/lib/web_contents_view_qt.h
+++ b/lib/web_contents_view_qt.h
@@ -114,6 +114,13 @@ public:
virtual void ShowPopupMenu(const gfx::Rect& bounds, int item_height, double item_font_size, int selected_item,
const std::vector<WebMenuItem>& items, bool right_aligned, bool allow_multiple_selection) { QT_NOT_YET_IMPLEMENTED }
+#if defined(OS_MACOSX)
+ virtual void SetAllowOverlappingViews(bool overlapping) { QT_NOT_YET_IMPLEMENTED }
+ virtual void CloseTabAfterEventTracking() { QT_NOT_YET_IMPLEMENTED }
+ virtual bool GetAllowOverlappingViews() const { QT_NOT_YET_IMPLEMENTED; return false; }
+ virtual bool IsEventTracking() const { QT_NOT_YET_IMPLEMENTED; return false; }
+#endif // defined(OS_MACOSX)
+
private:
WebContentsViewQtClient* m_client;
};