{
Ecore_X_Atom dataType = 0;
+ showSavedNotiPopup();
+
if (type == "PlainText" || type == "URIList" || type == "URL")
dataType = ecore_x_atom_get("UTF8_STRING");
else if (type == "Markup")
m_clipboardWindowOpened = true;
}
+void ClipboardHelper::showSavedNotiPopup()
+{
+ Evas_Object* parent = elm_object_parent_widget_get(m_viewImpl->view());
+ Evas_Object* notify = elm_notify_add(parent);
+ if (!notify) {
+ TIZEN_LOGE("elm_notify_add failed");
+ return;
+ }
+ elm_notify_align_set(notify, 0.5, 1.0);
+ evas_object_size_hint_weight_set(notify, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(notify, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+ Evas_Object* notifyLayout = elm_layout_add(notify);
+ if (!notifyLayout) {
+ TIZEN_LOGE("elm_layout_add failed");
+ return;
+ }
+
+ if (elm_win_rotation_get(parent) % 180)
+ elm_layout_theme_set(notifyLayout, "standard", "selectioninfo", "horizontal/bottom_64");
+ else
+ elm_layout_theme_set(notifyLayout, "standard", "selectioninfo", "vertical/bottom_64");
+ evas_object_size_hint_weight_set(notifyLayout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(notifyLayout, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_object_content_set(notify, notifyLayout);
+ edje_object_part_text_set(elm_layout_edje_get(notifyLayout), "elm.text", "Saved!");
+ elm_notify_timeout_set(notify, 2);
+
+ evas_object_show(notify);
+}
#endif // TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD
}// namespace WebKit