Title: [89920] trunk/Source/WebKit/efl
- Revision
- 89920
- Author
- [email protected]
- Date
- 2011-06-28 04:38:05 -0700 (Tue, 28 Jun 2011)
Log Message
2011-06-28 Michal Pakula vel Rutka <[email protected]>
Reviewed by Kenneth Rohde Christiansen.
[EFL] Implement EditorClientEfl::respondToChangedSelection
https://bugs.webkit.org/show_bug.cgi?id=63525
This patch:
- implements EditorClientEfl::respondToChangedSelection,
- adds ewk_frame_editor_client_selection_changed and
- ewk_view_editor_client_selection_changed
* WebCoreSupport/EditorClientEfl.cpp:
(WebCore::EditorClientEfl::respondToChangedSelection):
* ewk/ewk_frame.cpp:
(ewk_frame_editor_client_selection_changed):
* ewk/ewk_private.h:
* ewk/ewk_view.cpp:
(ewk_view_editor_client_selection_changed):
Modified Paths
Diff
Modified: trunk/Source/WebKit/efl/ChangeLog (89919 => 89920)
--- trunk/Source/WebKit/efl/ChangeLog 2011-06-28 09:59:11 UTC (rev 89919)
+++ trunk/Source/WebKit/efl/ChangeLog 2011-06-28 11:38:05 UTC (rev 89920)
@@ -1,3 +1,23 @@
+2011-06-28 Michal Pakula vel Rutka <[email protected]>
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ [EFL] Implement EditorClientEfl::respondToChangedSelection
+ https://bugs.webkit.org/show_bug.cgi?id=63525
+
+ This patch:
+ - implements EditorClientEfl::respondToChangedSelection,
+ - adds ewk_frame_editor_client_selection_changed and
+ - ewk_view_editor_client_selection_changed
+
+ * WebCoreSupport/EditorClientEfl.cpp:
+ (WebCore::EditorClientEfl::respondToChangedSelection):
+ * ewk/ewk_frame.cpp:
+ (ewk_frame_editor_client_selection_changed):
+ * ewk/ewk_private.h:
+ * ewk/ewk_view.cpp:
+ (ewk_view_editor_client_selection_changed):
+
2011-06-28 Gyuyoung Kim <[email protected]>
Reviewed by Kent Tamura.
Modified: trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp (89919 => 89920)
--- trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp 2011-06-28 09:59:11 UTC (rev 89919)
+++ trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp 2011-06-28 11:38:05 UTC (rev 89920)
@@ -127,7 +127,23 @@
void EditorClientEfl::respondToChangedSelection()
{
- notImplemented();
+ Evas_Object* frame = ewk_view_frame_focused_get(m_view);
+
+ if (!frame)
+ frame = ewk_view_frame_main_get(m_view);
+
+ if (!frame)
+ return;
+
+ WebCore::Frame* coreFrame = ewk_frame_core_get(frame);
+
+ if (!coreFrame)
+ return;
+
+ if (coreFrame->editor() && coreFrame->editor()->ignoreCompositionSelectionChange())
+ return;
+
+ ewk_frame_editor_client_selection_changed(frame);
}
void EditorClientEfl::didEndEditing()
Modified: trunk/Source/WebKit/efl/ewk/ewk_frame.cpp (89919 => 89920)
--- trunk/Source/WebKit/efl/ewk/ewk_frame.cpp 2011-06-28 09:59:11 UTC (rev 89919)
+++ trunk/Source/WebKit/efl/ewk/ewk_frame.cpp 2011-06-28 11:38:05 UTC (rev 89920)
@@ -1975,3 +1975,18 @@
{
return 0;
}
+
+/**
+ * @internal
+ * Reports that editor client selection was changed.
+ *
+ * @param o Frame
+ *
+ * Emits signal: "editorclientselection,changed" with no parameters.
+ */
+void ewk_frame_editor_client_selection_changed(Evas_Object* o)
+{
+ evas_object_smart_callback_call(o, "editorclient,selection,changed", 0);
+ EWK_FRAME_SD_GET_OR_RETURN(o, sd);
+ ewk_view_editor_client_selection_changed(sd->view);
+}
Modified: trunk/Source/WebKit/efl/ewk/ewk_private.h (89919 => 89920)
--- trunk/Source/WebKit/efl/ewk/ewk_private.h 2011-06-28 09:59:11 UTC (rev 89919)
+++ trunk/Source/WebKit/efl/ewk/ewk_private.h 2011-06-28 11:38:05 UTC (rev 89920)
@@ -111,6 +111,8 @@
void ewk_view_download_request(Evas_Object *o, Ewk_Download *download);
+void ewk_view_editor_client_selection_changed(Evas_Object* o);
+
int ewk_util_dpi_get(void);
#if ENABLE(TOUCH_EVENTS)
@@ -177,6 +179,8 @@
const char* ewk_settings_default_user_agent_get(void);
+void ewk_frame_editor_client_selection_changed(Evas_Object* o);
+
#ifdef __cplusplus
}
Modified: trunk/Source/WebKit/efl/ewk/ewk_view.cpp (89919 => 89920)
--- trunk/Source/WebKit/efl/ewk/ewk_view.cpp 2011-06-28 09:59:11 UTC (rev 89919)
+++ trunk/Source/WebKit/efl/ewk/ewk_view.cpp 2011-06-28 11:38:05 UTC (rev 89920)
@@ -4498,3 +4498,16 @@
return priv->flags.need_touch_events;
}
#endif
+
+/**
+ * @internal
+ * Reports the view that editor client selection has changed.
+ *
+ * @param o View.
+ *
+ * Emits signal: "editorclientselection,changed" with no parameters.
+ */
+void ewk_view_editor_client_selection_changed(Evas_Object* o)
+{
+ evas_object_smart_callback_call(o, "editorclient,selection,changed", 0);
+}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes