Changeset 88710 in webkit


Ignore:
Timestamp:
Jun 13, 2011 3:22:48 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-13 Grzegorz Czajkowski <g.czajkowski@samsung.com>

Reviewed by Eric Seidel.

[EFL] Remove ewk_frame_select_* functions from ewk_frame.cpp
https://bugs.webkit.org/show_bug.cgi?id=62365

These functions do not exist in any public headers and
they are not used internally.
Moreover ewk_view has the same functionality added
https://bugs.webkit.org/show_bug.cgi?id=60435

  • ewk/ewk_frame.cpp:
Location:
trunk/Source/WebKit/efl
Files:
2 edited

Legend:

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

    r88700 r88710  
     12011-06-13  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [EFL] Remove ewk_frame_select_* functions from ewk_frame.cpp
     6        https://bugs.webkit.org/show_bug.cgi?id=62365
     7
     8        These functions do not exist in any public headers and
     9        they are not used internally.
     10        Moreover ewk_view has the same functionality added
     11        https://bugs.webkit.org/show_bug.cgi?id=60435
     12
     13        * ewk/ewk_frame.cpp:
     14
    1152011-06-13  Raphael Kubo da Costa  <kubo@profusion.mobi>
    216
  • trunk/Source/WebKit/efl/ewk/ewk_frame.cpp

    r87706 r88710  
    658658}
    659659
    660 static inline Eina_Bool _ewk_frame_editor_command(Ewk_Frame_Smart_Data* sd, const char* command)
    661 {
    662     return sd->frame->editor()->command(WTF::String::fromUTF8(command)).execute();
    663 }
    664 
    665 /**
    666  * Unselects whatever was selected.
    667  *
    668  * @return @c EINA_TRUE if operation was executed, @c EINA_FALSE otherwise.
    669  */
    670 Eina_Bool ewk_frame_select_none(Evas_Object* o)
    671 {
    672     EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    673     EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
    674     return _ewk_frame_editor_command(sd, "Unselect");
    675 }
    676 
    677 /**
    678  * Selects everything.
    679  *
    680  * @return @c EINA_TRUE if operation was executed, @c EINA_FALSE otherwise.
    681  */
    682 Eina_Bool ewk_frame_select_all(Evas_Object* o)
    683 {
    684     EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    685     EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
    686     return _ewk_frame_editor_command(sd, "SelectAll");
    687 }
    688 
    689 /**
    690  * Selects the current paragrah.
    691  *
    692  * @return @c EINA_TRUE if operation was executed, @c EINA_FALSE otherwise.
    693  */
    694 Eina_Bool ewk_frame_select_paragraph(Evas_Object* o)
    695 {
    696     EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    697     EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
    698     return _ewk_frame_editor_command(sd, "SelectParagraph");
    699 }
    700 
    701 /**
    702  * Selects the current sentence.
    703  *
    704  * @return @c EINA_TRUE if operation was executed, @c EINA_FALSE otherwise.
    705  */
    706 Eina_Bool ewk_frame_select_sentence(Evas_Object* o)
    707 {
    708     EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    709     EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
    710     return _ewk_frame_editor_command(sd, "SelectSentence");
    711 }
    712 
    713 /**
    714  * Selects the current line.
    715  *
    716  * @return @c EINA_TRUE if operation was executed, @c EINA_FALSE otherwise.
    717  */
    718 Eina_Bool ewk_frame_select_line(Evas_Object* o)
    719 {
    720     EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    721     EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
    722     return _ewk_frame_editor_command(sd, "SelectLine");
    723 }
    724 
    725 /**
    726  * Selects the current word.
    727  *
    728  * @return @c EINA_TRUE if operation was executed, @c EINA_FALSE otherwise.
    729  */
    730 Eina_Bool ewk_frame_select_word(Evas_Object* o)
    731 {
    732     EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
    733     EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
    734     return _ewk_frame_editor_command(sd, "SelectWord");
    735 }
    736 
    737660/**
    738661 * Search the given text string in document.
Note: See TracChangeset for help on using the changeset viewer.