Adding initialize method to WebMediaHints and WebICEOptions. This is needed for Chromium unittests.
Created attachment 132807 [details] Patch
Please wait for approval from fishd@chromium.org before submitting because this patch contains changes to the Chromium public API.
Created attachment 132819 [details] Patch
Comment on attachment 132819 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=132819&action=review > Source/WebKit/chromium/src/WebICEOptions.cpp:57 > + IceOptions::UseCandidatesOption option = IceOptions::ALL; any reason not to just static_cast between these enum types? add lines to AssertMatchingEnums.cpp to ensure that the static_cast remains valid?
Comment on attachment 132819 [details] Patch Yeah, seems like we should be using static_cast here. See how similar enums are handled in other WebKit interfaces.
Created attachment 133025 [details] Patch
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment on attachment 132819 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=132819&action=review >> Source/WebKit/chromium/src/WebICEOptions.cpp:57 >> + IceOptions::UseCandidatesOption option = IceOptions::ALL; > > any reason not to just static_cast between these enum types? add lines > to AssertMatchingEnums.cpp to ensure that the static_cast remains valid? No reason. Fixed.
Created attachment 133027 [details] Patch
Comment on attachment 133027 [details] Patch Is this a common pattern in the API? Why not just use a constructor?
Yes, it is a very common chromium WebKit embedder pattern to have the initialize method creating the private WebCore object. As to exactly why I don't know. (In reply to comment #10) > (From update of attachment 133027 [details]) > Is this a common pattern in the API? Why not just use a constructor?
Comment on attachment 133027 [details] Patch Ok. I'm fairly new at reviewing changes to the WebKit API, so please feel free to correct me if I've missing anything here.
Comment on attachment 133027 [details] Patch Clearing flags on attachment: 133027 Committed r111582: <http://trac.webkit.org/changeset/111582>
All reviewed patches have been landed. Closing bug.
Comment on attachment 133027 [details] Patch LGTM too