Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: webkit/api/src/NotificationPresenterImpl.cpp

Issue 198034: Stick all of the WebKit API enum compile asserts in one file.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/api/src/NotificationPresenterImpl.cpp
===================================================================
--- webkit/api/src/NotificationPresenterImpl.cpp (revision 25491)
+++ webkit/api/src/NotificationPresenterImpl.cpp (working copy)
@@ -45,15 +45,6 @@
namespace WebKit {
-// Ensure that our publicly defined enum values never get out of sync with the
-// ones declared for use within WebCore.
-#define COMPILE_ASSERT_MATCHING_ENUM(name) \
- COMPILE_ASSERT(int(WebNotificationPresenter::name) == int(NotificationPresenter::name), name)
-
-COMPILE_ASSERT_MATCHING_ENUM(PermissionAllowed);
-COMPILE_ASSERT_MATCHING_ENUM(PermissionNotAllowed);
-COMPILE_ASSERT_MATCHING_ENUM(PermissionDenied);
-
class VoidCallbackClient : public WebNotificationPermissionCallback {
public:
VoidCallbackClient(PassRefPtr<VoidCallback> callback)

Powered by Google App Engine
This is Rietveld 408576698