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

Unified Diff: Source/web/AssertMatchingEnums.cpp

Issue 416313006: Update AssertMatchingEnums.cpp now that everything is in blink namespace (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/AssertMatchingEnums.cpp
diff --git a/Source/web/AssertMatchingEnums.cpp b/Source/web/AssertMatchingEnums.cpp
index c59c5e9f1f4f9f0f378f7594031ccd688ac0cb12..1897de82c3c7f9a9c9c83b91b8ae9ba396d0d296 100644
--- a/Source/web/AssertMatchingEnums.cpp
+++ b/Source/web/AssertMatchingEnums.cpp
@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// Use this file to assert that various WebKit API enum values continue
-// matching WebCore defined enum values.
+// Use this file to assert that various public API enum values continue
+// matching blink defined enum values.
#include "config.h"
@@ -132,11 +132,13 @@
#include "wtf/Assertions.h"
#include "wtf/text/StringImpl.h"
-#define COMPILE_ASSERT_MATCHING_ENUM(webkit_name, webcore_name) \
- COMPILE_ASSERT(int(blink::webkit_name) == int(blink::webcore_name), mismatching_enums)
+namespace blink {
-#define COMPILE_ASSERT_MATCHING_UINT64(webkit_name, webcore_name) \
- COMPILE_ASSERT(blink::webkit_name == blink::webcore_name, mismatching_enums)
+#define COMPILE_ASSERT_MATCHING_ENUM(public_name, core_name) \
+ COMPILE_ASSERT(int(public_name) == int(core_name), mismatching_enums)
+
+#define COMPILE_ASSERT_MATCHING_UINT64(public_name, core_name) \
+ COMPILE_ASSERT(public_name == core_name, mismatching_enums)
COMPILE_ASSERT_MATCHING_ENUM(WebAXEventActiveDescendantChanged, AXObjectCache::AXActiveDescendantChanged);
COMPILE_ASSERT_MATCHING_ENUM(WebAXEventAlert, AXObjectCache::AXAlert);
@@ -612,3 +614,5 @@ COMPILE_ASSERT_MATCHING_ENUM(WebTouchActionPanY, TouchActionPanY);
COMPILE_ASSERT_MATCHING_ENUM(WebTouchActionPinchZoom, TouchActionPinchZoom);
COMPILE_ASSERT_MATCHING_UINT64(kSerializedScriptValueVersion, SerializedScriptValue::wireFormatVersion);
+
+} // namespace blink
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698