Changeset 89920 in webkit


Ignore:
Timestamp:
Jun 28, 2011 4:38:05 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-28 Michal Pakula vel Rutka <Michał Pakuła vel Rutka>

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):
Location:
trunk/Source/WebKit/efl
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r89905 r89920  
     12011-06-28  Michal Pakula vel Rutka  <m.pakula@samsung.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [EFL] Implement EditorClientEfl::respondToChangedSelection
     6        https://bugs.webkit.org/show_bug.cgi?id=63525
     7
     8        This patch:
     9        - implements EditorClientEfl::respondToChangedSelection,
     10        - adds ewk_frame_editor_client_selection_changed and
     11        - ewk_view_editor_client_selection_changed
     12
     13        * WebCoreSupport/EditorClientEfl.cpp:
     14        (WebCore::EditorClientEfl::respondToChangedSelection):
     15        * ewk/ewk_frame.cpp:
     16        (ewk_frame_editor_client_selection_changed):
     17        * ewk/ewk_private.h:
     18        * ewk/ewk_view.cpp:
     19        (ewk_view_editor_client_selection_changed):
     20
    1212011-06-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    222
  • trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp

    r89298 r89920  
    128128void EditorClientEfl::respondToChangedSelection()
    129129{
    130     notImplemented();
     130    Evas_Object* frame = ewk_view_frame_focused_get(m_view);
     131
     132    if (!frame)
     133        frame = ewk_view_frame_main_get(m_view);
     134
     135    if (!frame)
     136        return;
     137
     138    WebCore::Frame* coreFrame = ewk_frame_core_get(frame);
     139
     140    if (!coreFrame)
     141        return;
     142
     143    if (coreFrame->editor() && coreFrame->editor()->ignoreCompositionSelectionChange())
     144        return;
     145
     146    ewk_frame_editor_client_selection_changed(frame);
    131147}
    132148
  • trunk/Source/WebKit/efl/ewk/ewk_frame.cpp

    r89721 r89920  
    19761976    return 0;
    19771977}
     1978
     1979/**
     1980 * @internal
     1981 * Reports that editor client selection was changed.
     1982 *
     1983 * @param o Frame
     1984 *
     1985 * Emits signal: "editorclientselection,changed" with no parameters.
     1986 */
     1987void ewk_frame_editor_client_selection_changed(Evas_Object* o)
     1988{
     1989    evas_object_smart_callback_call(o, "editorclient,selection,changed", 0);
     1990    EWK_FRAME_SD_GET_OR_RETURN(o, sd);
     1991    ewk_view_editor_client_selection_changed(sd->view);
     1992}
  • trunk/Source/WebKit/efl/ewk/ewk_private.h

    r89812 r89920  
    112112void ewk_view_download_request(Evas_Object *o, Ewk_Download *download);
    113113
     114void ewk_view_editor_client_selection_changed(Evas_Object* o);
     115
    114116int ewk_util_dpi_get(void);
    115117
     
    178180const char* ewk_settings_default_user_agent_get(void);
    179181
     182void ewk_frame_editor_client_selection_changed(Evas_Object* o);
     183
    180184#ifdef __cplusplus
    181185
  • trunk/Source/WebKit/efl/ewk/ewk_view.cpp

    r89812 r89920  
    44994499}
    45004500#endif
     4501
     4502/**
     4503 * @internal
     4504 * Reports the view that editor client selection has changed.
     4505 *
     4506 * @param o View.
     4507 *
     4508 * Emits signal: "editorclientselection,changed" with no parameters.
     4509 */
     4510void ewk_view_editor_client_selection_changed(Evas_Object* o)
     4511{
     4512    evas_object_smart_callback_call(o, "editorclient,selection,changed", 0);
     4513}
Note: See TracChangeset for help on using the changeset viewer.