<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[150226] trunk/Source/WebKit2</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/150226">150226</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2013-05-16 17:36:49 -0700 (Thu, 16 May 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>[EFL][WK2] Make Ewk_Context_Menu Ewk_Object
https://bugs.webkit.org/show_bug.cgi?id=116097

Patch by Michał Pakuła vel Rutka &lt;m.pakula@samsung.com&gt; on 2013-05-16
Reviewed by Gyuyoung Kim.

Changed Ewk_Context_Menu to be an Ewk_Object so pointer to menu
object can be shared between different modules.

* UIProcess/API/efl/EwkView.cpp:
(EwkView::showContextMenu):
* UIProcess/API/efl/EwkView.h:
(EwkView):
* UIProcess/API/efl/ewk_context_menu.cpp:
(EwkContextMenu::appendItem):
(EwkContextMenu::removeItem):
(ewk_context_menu_new):
(ewk_context_menu_new_with_items):
(ewk_context_menu_item_append):
(ewk_context_menu_item_remove):
(ewk_context_menu_hide):
(ewk_context_menu_items_get):
(ewk_context_menu_item_select):
* UIProcess/API/efl/ewk_context_menu_item.cpp:
(EwkContextMenuItem::EwkContextMenuItem):
(ewk_context_menu_item_new_with_submenu):
* UIProcess/API/efl/ewk_context_menu_item_private.h:
(EwkContextMenuItem):
* UIProcess/API/efl/ewk_context_menu_private.h:
(EwkContextMenu):
(EwkContextMenu::create):
* UIProcess/API/efl/ewk_defines.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIeflEwkViewcpp">trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIeflEwkViewh">trunk/Source/WebKit2/UIProcess/API/efl/EwkView.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIeflewk_context_menucpp">trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIeflewk_context_menu_itemcpp">trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_item.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIeflewk_context_menu_item_privateh">trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_item_private.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIeflewk_context_menu_privateh">trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_private.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIeflewk_definesh">trunk/Source/WebKit2/UIProcess/API/efl/ewk_defines.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (150225 => 150226)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2013-05-17 00:33:55 UTC (rev 150225)
+++ trunk/Source/WebKit2/ChangeLog        2013-05-17 00:36:49 UTC (rev 150226)
</span><span class="lines">@@ -1,3 +1,37 @@
</span><ins>+2013-05-16  Michał Pakuła vel Rutka  &lt;m.pakula@samsung.com&gt;
+
+        [EFL][WK2] Make Ewk_Context_Menu Ewk_Object
+        https://bugs.webkit.org/show_bug.cgi?id=116097
+
+        Reviewed by Gyuyoung Kim.
+
+        Changed Ewk_Context_Menu to be an Ewk_Object so pointer to menu
+        object can be shared between different modules.
+
+        * UIProcess/API/efl/EwkView.cpp:
+        (EwkView::showContextMenu):
+        * UIProcess/API/efl/EwkView.h:
+        (EwkView):
+        * UIProcess/API/efl/ewk_context_menu.cpp:
+        (EwkContextMenu::appendItem):
+        (EwkContextMenu::removeItem):
+        (ewk_context_menu_new):
+        (ewk_context_menu_new_with_items):
+        (ewk_context_menu_item_append):
+        (ewk_context_menu_item_remove):
+        (ewk_context_menu_hide):
+        (ewk_context_menu_items_get):
+        (ewk_context_menu_item_select):
+        * UIProcess/API/efl/ewk_context_menu_item.cpp:
+        (EwkContextMenuItem::EwkContextMenuItem):
+        (ewk_context_menu_item_new_with_submenu):
+        * UIProcess/API/efl/ewk_context_menu_item_private.h:
+        (EwkContextMenuItem):
+        * UIProcess/API/efl/ewk_context_menu_private.h:
+        (EwkContextMenu):
+        (EwkContextMenu::create):
+        * UIProcess/API/efl/ewk_defines.h:
+
</ins><span class="cx"> 2013-05-16  Andreas Kling  &lt;akling@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Page::chrome() should return a reference.
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIeflEwkViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp (150225 => 150226)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp        2013-05-17 00:33:55 UTC (rev 150225)
+++ trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp        2013-05-17 00:36:49 UTC (rev 150226)
</span><span class="lines">@@ -844,7 +844,7 @@
</span><span class="cx">     if (m_contextMenu)
</span><span class="cx">         hideContextMenu();
</span><span class="cx"> 
</span><del>-    m_contextMenu = Ewk_Context_Menu::create(this, items);
</del><ins>+    m_contextMenu = EwkContextMenu::create(this, items);
</ins><span class="cx"> 
</span><span class="cx">     sd-&gt;api-&gt;context_menu_show(sd, position.x, position.y, m_contextMenu.get());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIeflEwkViewh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/efl/EwkView.h (150225 => 150226)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/efl/EwkView.h        2013-05-17 00:33:55 UTC (rev 150225)
+++ trunk/Source/WebKit2/UIProcess/API/efl/EwkView.h        2013-05-17 00:36:49 UTC (rev 150226)
</span><span class="lines">@@ -278,7 +278,7 @@
</span><span class="cx">     bool m_touchEventsEnabled;
</span><span class="cx"> #endif
</span><span class="cx">     WebCore::Timer&lt;EwkView&gt; m_displayTimer;
</span><del>-    OwnPtr&lt;EwkContextMenu&gt; m_contextMenu;
</del><ins>+    RefPtr&lt;EwkContextMenu&gt; m_contextMenu;
</ins><span class="cx">     OwnPtr&lt;EwkPopupMenu&gt; m_popupMenu;
</span><span class="cx">     OwnPtr&lt;WebKit::InputMethodContextEfl&gt; m_inputMethodContext;
</span><span class="cx"> #if ENABLE(INPUT_TYPE_COLOR)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIeflewk_context_menucpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu.cpp (150225 => 150226)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu.cpp        2013-05-17 00:33:55 UTC (rev 150225)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu.cpp        2013-05-17 00:36:49 UTC (rev 150226)
</span><span class="lines">@@ -80,12 +80,12 @@
</span><span class="cx">     m_viewImpl-&gt;hideContextMenu();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void Ewk_Context_Menu::appendItem(EwkContextMenuItem* item)
</del><ins>+void EwkContextMenu::appendItem(EwkContextMenuItem* item)
</ins><span class="cx"> {
</span><span class="cx">     m_contextMenuItems = eina_list_append(m_contextMenuItems, item);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void Ewk_Context_Menu::removeItem(EwkContextMenuItem* item)
</del><ins>+void EwkContextMenu::removeItem(EwkContextMenuItem* item)
</ins><span class="cx"> {
</span><span class="cx">     m_contextMenuItems = eina_list_remove(m_contextMenuItems, item);
</span><span class="cx"> }
</span><span class="lines">@@ -97,51 +97,51 @@
</span><span class="cx"> 
</span><span class="cx"> Ewk_Context_Menu* ewk_context_menu_new()
</span><span class="cx"> {
</span><del>-    return EwkContextMenu::create().leakPtr();
</del><ins>+    return EwkContextMenu::create().leakRef();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Ewk_Context_Menu* ewk_context_menu_new_with_items(Eina_List* items)
</span><span class="cx"> {
</span><del>-    return EwkContextMenu::create(items).leakPtr();
</del><ins>+    return EwkContextMenu::create(items).leakRef();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Eina_Bool ewk_context_menu_item_append(Ewk_Context_Menu* menu, Ewk_Context_Menu_Item* item)
</span><span class="cx"> {
</span><del>-    EINA_SAFETY_ON_NULL_RETURN_VAL(menu, false);
</del><ins>+    EWK_OBJ_GET_IMPL_OR_RETURN(EwkContextMenu, menu, impl, false);
</ins><span class="cx"> 
</span><del>-    menu-&gt;appendItem(item);
</del><ins>+    impl-&gt;appendItem(item);
</ins><span class="cx"> 
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Eina_Bool ewk_context_menu_item_remove(Ewk_Context_Menu* menu, Ewk_Context_Menu_Item* item)
</span><span class="cx"> {
</span><del>-    EINA_SAFETY_ON_NULL_RETURN_VAL(menu, false);
</del><ins>+    EWK_OBJ_GET_IMPL_OR_RETURN(EwkContextMenu, menu, impl, false);
</ins><span class="cx"> 
</span><del>-    menu-&gt;removeItem(item);
</del><ins>+    impl-&gt;removeItem(item);
</ins><span class="cx"> 
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Eina_Bool ewk_context_menu_hide(Ewk_Context_Menu* menu)
</span><span class="cx"> {
</span><del>-    EINA_SAFETY_ON_NULL_RETURN_VAL(menu, false);
</del><ins>+    EWK_OBJ_GET_IMPL_OR_RETURN(EwkContextMenu, menu, impl, false);
</ins><span class="cx"> 
</span><del>-    menu-&gt;hide();
</del><ins>+    impl-&gt;hide();
</ins><span class="cx"> 
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> const Eina_List* ewk_context_menu_items_get(const Ewk_Context_Menu* menu)
</span><span class="cx"> {
</span><del>-    EINA_SAFETY_ON_NULL_RETURN_VAL(menu, 0);
</del><ins>+    EWK_OBJ_GET_IMPL_OR_RETURN(const EwkContextMenu, menu, impl, 0);
</ins><span class="cx"> 
</span><del>-    return menu-&gt;items();
</del><ins>+    return impl-&gt;items();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Eina_Bool ewk_context_menu_item_select(Ewk_Context_Menu* menu, Ewk_Context_Menu_Item* item)
</span><span class="cx"> {
</span><del>-    EINA_SAFETY_ON_NULL_RETURN_VAL(menu, false);
</del><ins>+    EWK_OBJ_GET_IMPL_OR_RETURN(EwkContextMenu, menu, impl, false);
</ins><span class="cx">     EINA_SAFETY_ON_NULL_RETURN_VAL(item, false);
</span><span class="cx"> 
</span><span class="cx">     WKContextMenuItemRef wkItem;
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx">         return false;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    menu-&gt;contextMenuItemSelected(wkItem);
</del><ins>+    impl-&gt;contextMenuItemSelected(wkItem);
</ins><span class="cx"> 
</span><span class="cx">     return true;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIeflewk_context_menu_itemcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_item.cpp (150225 => 150226)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_item.cpp        2013-05-17 00:33:55 UTC (rev 150225)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_item.cpp        2013-05-17 00:36:49 UTC (rev 150226)
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx"> 
</span><span class="cx"> static Ewk_Context_Menu_Item_Action getEwkActionFromWKTag(WKContextMenuItemTag action);
</span><span class="cx"> 
</span><del>-EwkContextMenuItem::EwkContextMenuItem(WKContextMenuItemRef item, Ewk_Context_Menu* parentMenu)
</del><ins>+EwkContextMenuItem::EwkContextMenuItem(WKContextMenuItemRef item, EwkContextMenu* parentMenu)
</ins><span class="cx">     : m_type(static_cast&lt;Ewk_Context_Menu_Item_Type&gt;(WKContextMenuItemGetType(item)))
</span><span class="cx">     , m_action(getEwkActionFromWKTag((WKContextMenuItemGetTag(item))))
</span><span class="cx">     , m_title(WKEinaSharedString(AdoptWK, WKContextMenuItemCopyTitle(item)))
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-EwkContextMenuItem::EwkContextMenuItem(Ewk_Context_Menu_Item_Type type, Ewk_Context_Menu_Item_Action action, const char* title, Eina_Bool checked, Eina_Bool enabled, Ewk_Context_Menu* subMenu, Ewk_Context_Menu* parentMenu)
</del><ins>+EwkContextMenuItem::EwkContextMenuItem(Ewk_Context_Menu_Item_Type type, Ewk_Context_Menu_Item_Action action, const char* title, Eina_Bool checked, Eina_Bool enabled, EwkContextMenu* subMenu, EwkContextMenu* parentMenu)
</ins><span class="cx">     : m_type(type)
</span><span class="cx">     , m_action(action)
</span><span class="cx">     , m_title(title)
</span><span class="lines">@@ -64,7 +64,9 @@
</span><span class="cx"> 
</span><span class="cx"> Ewk_Context_Menu_Item* ewk_context_menu_item_new_with_submenu(Ewk_Context_Menu_Item_Type type, Ewk_Context_Menu_Item_Action action, const char* title, Eina_Bool checked, Eina_Bool enabled, Ewk_Context_Menu* subMenu)
</span><span class="cx"> {
</span><del>-    return Ewk_Context_Menu_Item::create(type, action, title, checked, enabled, subMenu).leakPtr();
</del><ins>+    EWK_OBJ_GET_IMPL_OR_RETURN(EwkContextMenu, subMenu, subMenuImpl, 0);
+
+    return Ewk_Context_Menu_Item::create(type, action, title, checked, enabled, subMenuImpl).leakPtr();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Ewk_Context_Menu_Item_Type ewk_context_menu_item_type_get(const Ewk_Context_Menu_Item* item)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIeflewk_context_menu_item_privateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_item_private.h (150225 => 150226)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_item_private.h        2013-05-17 00:33:55 UTC (rev 150225)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_item_private.h        2013-05-17 00:36:49 UTC (rev 150226)
</span><span class="lines">@@ -30,6 +30,7 @@
</span><span class="cx"> #include &quot;WKEinaSharedString.h&quot;
</span><span class="cx"> #include &quot;ewk_context_menu.h&quot;
</span><span class="cx"> #include &quot;ewk_context_menu_item.h&quot;
</span><ins>+#include &quot;ewk_context_menu_private.h&quot;
</ins><span class="cx"> #include &lt;wtf/PassOwnPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -78,8 +79,8 @@
</span><span class="cx">     bool m_isChecked;
</span><span class="cx">     bool m_isEnabled;
</span><span class="cx"> 
</span><del>-    Ewk_Context_Menu* m_parentMenu;
-    Ewk_Context_Menu* m_subMenu;
</del><ins>+    EwkContextMenu* m_parentMenu;
+    EwkContextMenu* m_subMenu;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> #endif // ewk_context_menu_item_private_h
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIeflewk_context_menu_privateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_private.h (150225 => 150226)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_private.h        2013-05-17 00:33:55 UTC (rev 150225)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_context_menu_private.h        2013-05-17 00:36:49 UTC (rev 150226)
</span><span class="lines">@@ -27,26 +27,29 @@
</span><span class="cx"> #define ewk_context_menu_private_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;ewk_context_menu_item.h&quot;
</span><ins>+#include &quot;ewk_object_private.h&quot;
</ins><span class="cx"> #include &lt;Eina.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><ins>+#include &lt;wtf/PassRefPtr.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> class EwkView;
</span><span class="cx"> 
</span><del>-class EwkContextMenu {
</del><ins>+class EwkContextMenu : public EwkObject {
</ins><span class="cx"> public:
</span><del>-    static PassOwnPtr&lt;EwkContextMenu&gt; create(EwkView* viewImpl, WKArrayRef items)
</del><ins>+    EWK_OBJECT_DECLARE(EwkContextMenu)
+
+    static PassRefPtr&lt;EwkContextMenu&gt; create(EwkView* viewImpl, WKArrayRef items)
</ins><span class="cx">     {
</span><del>-        return adoptPtr(new EwkContextMenu(viewImpl, items));
</del><ins>+        return adoptRef(new EwkContextMenu(viewImpl, items));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassOwnPtr&lt;EwkContextMenu&gt; create()
</del><ins>+    static PassRefPtr&lt;EwkContextMenu&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptPtr(new EwkContextMenu());
</del><ins>+        return adoptRef(new EwkContextMenu());
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassOwnPtr&lt;EwkContextMenu&gt; create(Eina_List* items)
</del><ins>+    static PassRefPtr&lt;EwkContextMenu&gt; create(Eina_List* items)
</ins><span class="cx">     {
</span><del>-        return adoptPtr(new EwkContextMenu(items));
</del><ins>+        return adoptRef(new EwkContextMenu(items));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     ~EwkContextMenu();
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIeflewk_definesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_defines.h (150225 => 150226)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_defines.h        2013-05-17 00:33:55 UTC (rev 150225)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_defines.h        2013-05-17 00:36:49 UTC (rev 150226)
</span><span class="lines">@@ -35,8 +35,12 @@
</span><span class="cx"> extern &quot;C&quot; {
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-/** Creates a type name for Ewk_Context_Menu */
-typedef struct EwkContextMenu Ewk_Context_Menu;
</del><ins>+/**
+ * Declare Ewk_Context_Menu as Ewk_Object.
+ *
+ * @see Ewk_Object
+ */
+typedef struct EwkObject Ewk_Context_Menu;
</ins><span class="cx"> 
</span><span class="cx"> /** Creates a type name for Ewk_Context_Menu_Item */
</span><span class="cx"> typedef struct EwkContextMenuItem Ewk_Context_Menu_Item;
</span></span></pre>
</div>
</div>

</body>
</html>