summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInBum Chang <ibchang@samsung.com>2012-09-07 10:15:27 +0900
committerGerrit Code Review <gerrit2@localhost>2012-09-07 10:15:27 +0900
commit7f3aceb1b7cf38dcda6c59884b6a14401ad42526 (patch)
tree51e77045498b40a36c30dfb7db40643d13d9640a
parent9b51b0acbdd033bd25679c305780c5b071102841 (diff)
parent529ca671e0b19d0c64b31af97801a7750a03db80 (diff)
downloadorg.tizen.browser-7f3aceb1b7cf38dcda6c59884b6a14401ad42526.tar.gz
org.tizen.browser-7f3aceb1b7cf38dcda6c59884b6a14401ad42526.tar.bz2
org.tizen.browser-7f3aceb1b7cf38dcda6c59884b6a14401ad42526.zip
Merge "Remove un supported context popup menu (selection mode, share)" into 2.0_beta
-rwxr-xr-xsrc/browser-settings/browser-settings-edit-homepage-view.cpp2
-rwxr-xr-xsrc/browser-view/browser-context-menu.cpp56
-rwxr-xr-xsrc/browser-view/browser-context-menu.h3
-rwxr-xr-xsrc/include/browser-string.h2
4 files changed, 2 insertions, 61 deletions
diff --git a/src/browser-settings/browser-settings-edit-homepage-view.cpp b/src/browser-settings/browser-settings-edit-homepage-view.cpp
index 941a1ba..d128c5e 100755
--- a/src/browser-settings/browser-settings-edit-homepage-view.cpp
+++ b/src/browser-settings/browser-settings-edit-homepage-view.cpp
@@ -152,8 +152,6 @@ Eina_Bool Browser_Settings_Edit_Homepage_View::_create_main_layout(void)
m_navi_it = elm_naviframe_item_push(m_navi_bar, BR_STRING_HOMEPAGE, NULL, NULL,
m_conformant, "browser_titlebar");
- evas_object_smart_callback_add(m_navi_bar, "transition,finished", __naviframe_pop_finished_cb, this);
-
elm_object_item_part_content_set(m_navi_it, ELM_NAVIFRAME_ITEM_PREV_BTN, NULL);
m_done_button = elm_button_add(m_conformant);
diff --git a/src/browser-view/browser-context-menu.cpp b/src/browser-view/browser-context-menu.cpp
index 7764024..b738dd5 100755
--- a/src/browser-view/browser-context-menu.cpp
+++ b/src/browser-view/browser-context-menu.cpp
@@ -124,55 +124,11 @@ void Browser_Context_Menu::__custom_context_menu_item_selected_cb(void *data, Ev
Ewk_Context_Menu_Item_Tag tag = ewk_context_menu_item_tag_get(item);
switch (tag) {
- case CUSTOM_CONTEXT_MENU_ITEM_TEXT_SHARE_TAG:
- BROWSER_LOGD("Share selected text[%s]", selected_text);
- if (selected_text && strlen(selected_text) > 0)
- context_menu->_show_share_popup(selected_text);
- break;
case CUSTOM_CONTEXT_MENU_ITEM_FIND_ON_TAG:
BROWSER_LOGD("Find selected text[%s] on the page", selected_text);
if (selected_text && strlen(selected_text) > 0)
context_menu->find_word_with_text(selected_text);
break;
- case CUSTOM_CONTEXT_MENU_ITEM_LINK_SHARE_TAG:
- BROWSER_LOGD("Share popup for link show");
- context_menu->_show_share_popup(link_url_string.c_str());
- break;
- case CUSTOM_CONTEXT_MENU_ITEM_IMAGE_SHARE_TAG:
- BROWSER_LOGD("Share popup for image show");
- context_menu->_show_share_popup(image_url_string.c_str());
- break;
- case CUSTOM_CONTEXT_MENU_ITEM_SELECTION_MODE_FROM_TEXT_WITH_HYPERLINK_TAG:
- {
- /* FIXME - put text selection mode activating code when it is ready */
- Evas_Object *ewk_view = context_menu->m_ewk_view;
- Ewk_View_Smart_Data *smart_data = 0;
- int pressed_x = context_menu->get_pressed_position_x();
- int pressed_y = context_menu->get_pressed_position_y();
-
- if (!ewk_view) {
- BROWSER_LOGD("ewk_view is NULL");
- break;
- }
- smart_data = (Ewk_View_Smart_Data *)evas_object_smart_data_get(ewk_view);
- if (!smart_data) {
- BROWSER_LOGD("smart_Data is NULL");
- break;
- }
- if (smart_data->api->text_selection_down(smart_data, pressed_x, pressed_y) == EINA_FALSE)
- BROWSER_LOGD("text_selection_down failed");
-
- if (smart_data->api->text_selection_up(smart_data, pressed_x, pressed_y) == EINA_FALSE)
- BROWSER_LOGD("text_selection_up failed");
-
- break;
- }
- case CUSTOM_CONTEXT_MENU_ITEM_SELECTION_MODE_FROM_TEXT_TAG:
- case CUSTOM_CONTEXT_MENU_ITEM_SELECTION_MODE_FROM_IMAGE_TAG:
- case CUSTOM_CONTEXT_MENU_ITEM_SELECTION_MODE_FROM_IMAGE_WITH_HYPERLINK_TAG:
- /* FIXME - put text selection mode activating code when it is ready */
- BROWSER_LOGD("Selection mode");
- break;
default:
break;
}
@@ -308,8 +264,7 @@ Eina_Bool Browser_Context_Menu::_append_text_only_mode_context_menu(Ewk_Context_
break;
case EWK_CONTEXT_MENU_ITEM_TAG_COPY:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_COPY, true);
- ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_FIND_ON_TAG, BR_STRING_CTXMENI_FIND_ON_PAGE, true);
- ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_TEXT_SHARE_TAG, BR_STRING_CTXMENU_SHARE, true);
+ ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_FIND_ON_TAG, BR_STRING_CTXMENU_FIND_ON_PAGE, true);
break;
case EWK_CONTEXT_MENU_ITEM_TAG_SELECT_ALL:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_SELECT_ALL, true);
@@ -414,8 +369,6 @@ Eina_Bool Browser_Context_Menu::_append_hyperlink_only_mode_context_menu(Ewk_Con
break;
case EWK_CONTEXT_MENU_ITEM_TAG_COPY_LINK_TO_CLIPBOARD:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_COPY_LINK_LOCATION, true);
- ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_LINK_SHARE_TAG, BR_STRING_CTXMENU_SHARE, true);
- ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_SELECTION_MODE_FROM_TEXT_WITH_HYPERLINK_TAG, BR_STRING_CTXMENU_SELECTION_MODE, true);
break;
#if 0
case EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_LINK_TO_DISK:
@@ -487,7 +440,6 @@ Eina_Bool Browser_Context_Menu::_append_image_only_mode_context_menu(Ewk_Context
break;
case EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_IMAGE_TO_DISK:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_SAVE_IMAGE, true);
- ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_IMAGE_SHARE_TAG, BR_STRING_CTXMENU_SHARE_IMAGE, true);
ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_SELECTION_MODE_FROM_IMAGE_TAG, BR_STRING_CTXMENU_SELECTION_MODE, true);
break;
default:
@@ -572,7 +524,6 @@ Eina_Bool Browser_Context_Menu::_append_image_with_hyperlink_mode_context_menu(E
break;
case EWK_CONTEXT_MENU_ITEM_TAG_COPY_LINK_TO_CLIPBOARD:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_COPY_LINK_LOCATION, true);
- ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_TEXT_SHARE_TAG, BR_STRING_CTXMENU_SHARE, true);
break;
case EWK_CONTEXT_MENU_ITEM_TAG_COPY_IMAGE_TO_CLIPBOARD:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_COPY_IMAGE, true);
@@ -582,7 +533,6 @@ Eina_Bool Browser_Context_Menu::_append_image_with_hyperlink_mode_context_menu(E
break;
case EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_IMAGE_TO_DISK:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_SAVE_IMAGE, true);
- ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_LINK_SHARE_TAG, BR_STRING_CTXMENU_SHARE_IMAGE, true);
ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_SELECTION_MODE_FROM_IMAGE_TAG, BR_STRING_CTXMENU_SELECTION_MODE, true);
break;
default:
@@ -631,8 +581,6 @@ Eina_Bool Browser_Context_Menu::_append_normal_mode_context_menu(Ewk_Context_Men
break;
case EWK_CONTEXT_MENU_ITEM_TAG_OPEN_LINK_IN_NEW_WINDOW:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_OPEN_LINK_IN_NEW_WINDOW, true);
- ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_LINK_SHARE_TAG, BR_STRING_CTXMENU_SHARE_LINK, true);
- show_hyperlink_item_flag = true;
break;
case EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_LINK_TO_DISK:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_SAVE_LINK, true);
@@ -642,8 +590,6 @@ Eina_Bool Browser_Context_Menu::_append_normal_mode_context_menu(Ewk_Context_Men
break;
case EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_IMAGE_TO_DISK:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_SAVE_IMAGE, true);
- ewk_context_menu_item_append_as_action(menu, CUSTOM_CONTEXT_MENU_ITEM_IMAGE_SHARE_TAG, BR_STRING_CTXMENU_SHARE_IMAGE_URL, true);
- show_imagemode_flag = true;
break;
case EWK_CONTEXT_MENU_ITEM_TAG_COPY_IMAGE_TO_CLIPBOARD:
ewk_context_menu_item_append_as_action(menu, tag, BR_STRING_CTXMENU_COPY_IMAGE, true);
diff --git a/src/browser-view/browser-context-menu.h b/src/browser-view/browser-context-menu.h
index fb5252b..cf846f6 100755
--- a/src/browser-view/browser-context-menu.h
+++ b/src/browser-view/browser-context-menu.h
@@ -54,9 +54,6 @@ public:
typedef enum _custom_context_menu_item_tag {
CUSTOM_CONTEXT_MENU_ITEM_BASE_TAG = EWK_CONTEXT_MENU_ITEM_BASE_APPLICATION_TAG,
- CUSTOM_CONTEXT_MENU_ITEM_LINK_SHARE_TAG,
- CUSTOM_CONTEXT_MENU_ITEM_IMAGE_SHARE_TAG,
- CUSTOM_CONTEXT_MENU_ITEM_TEXT_SHARE_TAG,
CUSTOM_CONTEXT_MENU_ITEM_FIND_ON_TAG,
CUSTOM_CONTEXT_MENU_ITEM_SELECTION_MODE_FROM_TEXT_TAG,
CUSTOM_CONTEXT_MENU_ITEM_SELECTION_MODE_FROM_IMAGE_TAG,
diff --git a/src/include/browser-string.h b/src/include/browser-string.h
index d42a9b3..454edfd 100755
--- a/src/include/browser-string.h
+++ b/src/include/browser-string.h
@@ -251,7 +251,7 @@
#define BR_STRING_CTXMENU_SEARCH dgettext("sys_string", "IDS_COM_BODY_SEARCH")
#define BR_STRING_CTXMENU_SHARE dgettext("sys_string", "IDS_COM_BUTTON_SHARE")
#define BR_STRING_CTXMENU_DELETE dgettext("sys_string", "IDS_COM_BODY_DELETE")
-#define BR_STRING_CTXMENI_FIND_ON_PAGE _("IDS_BR_OPT_FIND_ON_PAGE")
+#define BR_STRING_CTXMENU_FIND_ON_PAGE _("IDS_BR_OPT_FIND_ON_PAGE")
#define BR_STRING_CTXMENU_PASTE_AND_GO _("Paste & Go")
#define BR_STRING_CTXMENU_SHARE_IMAGE_URL _("Share image URL")
#define BR_STRING_CTXMENU_SHARE_LINK _("IDS_BR_BODY_SHARE_LINK")