Changeset 166866 in webkit


Ignore:
Timestamp:
Apr 6, 2014 10:24:42 PM (10 years ago)
Author:
gyuyoung.kim@samsung.com
Message:

[EFL][WK1] Apply std::unique_ptr<> to NavigatorContentUtilsClientEfl
https://bugs.webkit.org/show_bug.cgi?id=130958

Reviewed by Darin Adler.

As a step of replacing OwnPtr with std::unique_ptr, this patch replaces
OwnPtr with the std::unique_ptr for NavigatorContentUtilsClientEfl.

  • WebCoreSupport/NavigatorContentUtilsClientEfl.cpp:

(WebCore::NavigatorContentUtilsClientEfl::create): Deleted.

  • WebCoreSupport/NavigatorContentUtilsClientEfl.h:
  • ewk/ewk_view.cpp:

(_ewk_view_priv_new):

Location:
trunk/Source/WebKit/efl
Files:
4 edited

Legend:

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

    r166831 r166866  
     12014-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
    1172014-04-05  Ryuan Choi  <ryuan.choi@samsung.com>
    218
  • trunk/Source/WebKit/efl/WebCoreSupport/NavigatorContentUtilsClientEfl.cpp

    r165676 r166866  
    5454}
    5555
    56 PassOwnPtr<NavigatorContentUtilsClientEfl> NavigatorContentUtilsClientEfl::create(Evas_Object* view)
    57 {
    58     return adoptPtr(new NavigatorContentUtilsClientEfl(view));
    59 }
    60 
    6156NavigatorContentUtilsClientEfl::NavigatorContentUtilsClientEfl(Evas_Object* view)
    6257    : m_view(view)
  • trunk/Source/WebKit/efl/WebCoreSupport/NavigatorContentUtilsClientEfl.h

    r166149 r166866  
    3737class NavigatorContentUtilsClientEfl : public WebCore::NavigatorContentUtilsClient {
    3838public:
    39     static PassOwnPtr<NavigatorContentUtilsClientEfl> create(Evas_Object* view);
     39    explicit NavigatorContentUtilsClientEfl(Evas_Object* view);
    4040
    4141    ~NavigatorContentUtilsClientEfl() { }
     
    4949private:
    5050    Evas_Object* m_view;
    51 
    52     NavigatorContentUtilsClientEfl(Evas_Object* view);
    5351};
    5452}
  • trunk/Source/WebKit/efl/ewk/ewk_view.cpp

    r166661 r166866  
    261261#endif
    262262#if ENABLE(NAVIGATOR_CONTENT_UTILS) || ENABLE(CUSTOM_SCHEME_HANDLER)
    263     OwnPtr<WebCore::NavigatorContentUtilsClientEfl> navigatorContentUtilsClient;
     263    std::unique_ptr<WebCore::NavigatorContentUtilsClientEfl> navigatorContentUtilsClient;
    264264#endif
    265265    struct {
     
    688688
    689689#if ENABLE(NAVIGATOR_CONTENT_UTILS)
    690     priv->navigatorContentUtilsClient = WebCore::NavigatorContentUtilsClientEfl::create(smartData->self);
     690    priv->navigatorContentUtilsClient = std::make_unique<WebCore::NavigatorContentUtilsClientEfl>(smartData->self);
    691691    WebCore::provideNavigatorContentUtilsTo(priv->page.get(), priv->navigatorContentUtilsClient.get());
    692692#endif
Note: See TracChangeset for help on using the changeset viewer.