Changeset 166866 in webkit
- Timestamp:
- Apr 6, 2014 10:24:42 PM (10 years ago)
- Location:
- trunk/Source/WebKit/efl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
r166831 r166866 1 2014-04-06 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 [EFL][WK1] Apply std::unique_ptr<> to NavigatorContentUtilsClientEfl 4 https://bugs.webkit.org/show_bug.cgi?id=130958 5 6 Reviewed by Darin Adler. 7 8 As a step of replacing OwnPtr with std::unique_ptr, this patch replaces 9 OwnPtr with the std::unique_ptr for NavigatorContentUtilsClientEfl. 10 11 * WebCoreSupport/NavigatorContentUtilsClientEfl.cpp: 12 (WebCore::NavigatorContentUtilsClientEfl::create): Deleted. 13 * WebCoreSupport/NavigatorContentUtilsClientEfl.h: 14 * ewk/ewk_view.cpp: 15 (_ewk_view_priv_new): 16 1 17 2014-04-05 Ryuan Choi <ryuan.choi@samsung.com> 2 18 -
trunk/Source/WebKit/efl/WebCoreSupport/NavigatorContentUtilsClientEfl.cpp
r165676 r166866 54 54 } 55 55 56 PassOwnPtr<NavigatorContentUtilsClientEfl> NavigatorContentUtilsClientEfl::create(Evas_Object* view)57 {58 return adoptPtr(new NavigatorContentUtilsClientEfl(view));59 }60 61 56 NavigatorContentUtilsClientEfl::NavigatorContentUtilsClientEfl(Evas_Object* view) 62 57 : m_view(view) -
trunk/Source/WebKit/efl/WebCoreSupport/NavigatorContentUtilsClientEfl.h
r166149 r166866 37 37 class NavigatorContentUtilsClientEfl : public WebCore::NavigatorContentUtilsClient { 38 38 public: 39 static PassOwnPtr<NavigatorContentUtilsClientEfl> create(Evas_Object* view);39 explicit NavigatorContentUtilsClientEfl(Evas_Object* view); 40 40 41 41 ~NavigatorContentUtilsClientEfl() { } … … 49 49 private: 50 50 Evas_Object* m_view; 51 52 NavigatorContentUtilsClientEfl(Evas_Object* view);53 51 }; 54 52 } -
trunk/Source/WebKit/efl/ewk/ewk_view.cpp
r166661 r166866 261 261 #endif 262 262 #if ENABLE(NAVIGATOR_CONTENT_UTILS) || ENABLE(CUSTOM_SCHEME_HANDLER) 263 OwnPtr<WebCore::NavigatorContentUtilsClientEfl> navigatorContentUtilsClient;263 std::unique_ptr<WebCore::NavigatorContentUtilsClientEfl> navigatorContentUtilsClient; 264 264 #endif 265 265 struct { … … 688 688 689 689 #if ENABLE(NAVIGATOR_CONTENT_UTILS) 690 priv->navigatorContentUtilsClient = WebCore::NavigatorContentUtilsClientEfl::create(smartData->self);690 priv->navigatorContentUtilsClient = std::make_unique<WebCore::NavigatorContentUtilsClientEfl>(smartData->self); 691 691 WebCore::provideNavigatorContentUtilsTo(priv->page.get(), priv->navigatorContentUtilsClient.get()); 692 692 #endif
Note: See TracChangeset
for help on using the changeset viewer.