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

Side by Side Diff: public/platform/WebCommon.h

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/platform/WebColor.h ('k') | public/platform/WebCompositingReasons.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Visual Studio doesn't have stdint.h. 81 // Visual Studio doesn't have stdint.h.
82 typedef short int16_t; 82 typedef short int16_t;
83 typedef unsigned short uint16_t; 83 typedef unsigned short uint16_t;
84 typedef int int32_t; 84 typedef int int32_t;
85 typedef unsigned int uint32_t; 85 typedef unsigned int uint32_t;
86 typedef unsigned __int64 uint64_t; 86 typedef unsigned __int64 uint64_t;
87 #else 87 #else
88 #include <stdint.h> // For int32_t 88 #include <stdint.h> // For int32_t
89 #endif 89 #endif
90 90
91 namespace WebKit { 91 namespace blink {
92 92
93 // UTF-32 character type 93 // UTF-32 character type
94 typedef int32_t WebUChar32; 94 typedef int32_t WebUChar32;
95 95
96 // UTF-16 character type 96 // UTF-16 character type
97 #if defined(WIN32) 97 #if defined(WIN32)
98 typedef wchar_t WebUChar; 98 typedef wchar_t WebUChar;
99 #else 99 #else
100 typedef unsigned short WebUChar; 100 typedef unsigned short WebUChar;
101 #endif 101 #endif
102 102
103 // Latin-1 character type 103 // Latin-1 character type
104 typedef unsigned char WebLChar; 104 typedef unsigned char WebLChar;
105 105
106 // ----------------------------------------------------------------------------- 106 // -----------------------------------------------------------------------------
107 // Assertions 107 // Assertions
108 108
109 BLINK_COMMON_EXPORT void failedAssertion(const char* file, int line, const char* function, const char* assertion); 109 BLINK_COMMON_EXPORT void failedAssertion(const char* file, int line, const char* function, const char* assertion);
110 110
111 } // namespace WebKit 111 } // namespace blink
112 112
113 // Ideally, only use inside the public directory but outside of INSIDE_BLINK blo cks. (Otherwise use WTF's ASSERT.) 113 // Ideally, only use inside the public directory but outside of INSIDE_BLINK blo cks. (Otherwise use WTF's ASSERT.)
114 #if defined(NDEBUG) 114 #if defined(NDEBUG)
115 #define BLINK_ASSERT(assertion) ((void)0) 115 #define BLINK_ASSERT(assertion) ((void)0)
116 #else 116 #else
117 #define BLINK_ASSERT(assertion) do { \ 117 #define BLINK_ASSERT(assertion) do { \
118 if (!(assertion)) \ 118 if (!(assertion)) \
119 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ 119 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \
120 } while (0) 120 } while (0)
121 #endif 121 #endif
122 122
123 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0) 123 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0)
124 124
125 #endif 125 #endif
OLDNEW
« no previous file with comments | « public/platform/WebColor.h ('k') | public/platform/WebCompositingReasons.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698