Changeset 92039 in webkit


Ignore:
Timestamp:
Jul 29, 2011 7:00:35 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Implement EditorClientEfl::respondToChangedContents
http://bugs.webkit.org/show_bug.cgi?id=64259

Implements respondToChangedContents by calling callback both from
ewk_frame and ewk_view with frame and view objects respectively.

Patch by Michal Pakula vel Rutka <Michał Pakuła vel Rutka> on 2011-07-29
Reviewed by Antonio Gomes.

  • WebCoreSupport/EditorClientEfl.cpp:

(WebCore::EditorClientEfl::respondToChangedContents):

  • ewk/ewk_frame.cpp:

(ewk_frame_editor_client_contents_changed):

  • ewk/ewk_frame.h:
  • ewk/ewk_private.h:
  • ewk/ewk_view.cpp:

(ewk_view_editor_client_contents_changed):

  • ewk/ewk_view.h:
Location:
trunk/Source/WebKit/efl
Files:
7 edited

Legend:

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

    r91981 r92039  
     12011-07-29  Michal Pakula vel Rutka  <m.pakula@samsung.com>
     2
     3        [EFL] Implement EditorClientEfl::respondToChangedContents
     4        http://bugs.webkit.org/show_bug.cgi?id=64259
     5
     6        Implements respondToChangedContents by calling callback both from
     7        ewk_frame and ewk_view with frame and view objects respectively.
     8
     9        Reviewed by Antonio Gomes.
     10
     11        * WebCoreSupport/EditorClientEfl.cpp:
     12        (WebCore::EditorClientEfl::respondToChangedContents):
     13        * ewk/ewk_frame.cpp:
     14        (ewk_frame_editor_client_contents_changed):
     15        * ewk/ewk_frame.h:
     16        * ewk/ewk_private.h:
     17        * ewk/ewk_view.cpp:
     18        (ewk_view_editor_client_contents_changed):
     19        * ewk/ewk_view.h:
     20
    1212011-07-29  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
    222
  • trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp

    r90808 r92039  
    123123void EditorClientEfl::respondToChangedContents()
    124124{
    125     notImplemented();
     125    Evas_Object* frame = ewk_view_frame_focused_get(m_view);
     126
     127    if (!frame)
     128        frame = ewk_view_frame_main_get(m_view);
     129
     130    if (!frame)
     131        return;
     132
     133    ewk_frame_editor_client_contents_changed(frame);
    126134}
    127135
  • trunk/Source/WebKit/efl/ewk/ewk_frame.cpp

    r91971 r92039  
    20332033    ewk_view_editor_client_selection_changed(sd->view);
    20342034}
     2035
     2036/**
     2037 * @internal
     2038 * Reports that editor client's contents were changed.
     2039 *
     2040 * @param o Frame
     2041 *
     2042 * Emits signal: "editorclient,contents,changed" with no parameters.
     2043 */
     2044void ewk_frame_editor_client_contents_changed(Evas_Object *o)
     2045{
     2046    evas_object_smart_callback_call(o, "editorclient,contents,changed", 0);
     2047    EWK_FRAME_SD_GET_OR_RETURN(o, sd);
     2048    ewk_view_editor_client_contents_changed(sd->view);
     2049}
  • trunk/Source/WebKit/efl/ewk/ewk_frame.h

    r91971 r92039  
    5959 *    be requested.
    6060 *  - "state,save", void: frame's state will be saved as a history item.
     61 *  - "editorclient,contents,changed", void: reports that editor client's
     62 *    contents were changed
    6163 */
    6264
  • trunk/Source/WebKit/efl/ewk/ewk_private.h

    r91972 r92039  
    112112void ewk_view_download_request(Evas_Object *o, Ewk_Download *download);
    113113
     114void ewk_view_editor_client_contents_changed(Evas_Object *o);
    114115void ewk_view_editor_client_selection_changed(Evas_Object *o);
    115116
     
    180181const char* ewk_settings_default_user_agent_get(void);
    181182
     183void ewk_frame_editor_client_contents_changed(Evas_Object *o);
    182184void ewk_frame_editor_client_selection_changed(Evas_Object *o);
    183185
  • trunk/Source/WebKit/efl/ewk/ewk_view.cpp

    r91981 r92039  
    36473647    evas_object_smart_callback_call(o, "editorclient,selection,changed", 0);
    36483648}
     3649
     3650/**
     3651 * @internal
     3652 * Reports to the view that editor client's contents were changed.
     3653 *
     3654 * @param o View.
     3655 *
     3656 * Emits signal: "editorclient,contents,changed" with no parameters.
     3657 */
     3658void ewk_view_editor_client_contents_changed(Evas_Object *o)
     3659{
     3660    evas_object_smart_callback_call(o, "editorclient,contents,changed", 0);
     3661}
  • trunk/Source/WebKit/efl/ewk/ewk_view.h

    r91981 r92039  
    9191 *    and it gives a frame that originated restore as an argument.
    9292 *  - "tooltip,text,set", const char*: sets tooltip text and displays if it is currently hidden.
     93 *  - "editorclient,contents,changed", void: reports to the view that editor
     94 *    client's contents were changed
    9395 */
    9496
Note: See TracChangeset for help on using the changeset viewer.