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

Unified Diff: sky/engine/bindings-dart/core/dart/DartLibraryIds.h

Issue 875013003: Import Dart bindings as of Blink r188698. This merely copies the files over and does not attach any… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: sky/engine/bindings-dart/core/dart/DartLibraryIds.h
diff --git a/sky/engine/core/loader/UniqueIdentifier.cpp b/sky/engine/bindings-dart/core/dart/DartLibraryIds.h
similarity index 87%
copy from sky/engine/core/loader/UniqueIdentifier.cpp
copy to sky/engine/bindings-dart/core/dart/DartLibraryIds.h
index 0d6d9b3c9e1dc27a0d61a0e075c6e12a81ee5fdb..8ac72fdb911c2dd96ba6ab1434d5233ff49c824d 100644
--- a/sky/engine/core/loader/UniqueIdentifier.cpp
+++ b/sky/engine/bindings-dart/core/dart/DartLibraryIds.h
@@ -28,17 +28,20 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "sky/engine/config.h"
-#include "sky/engine/core/loader/UniqueIdentifier.h"
+#ifndef DartLibraryIds_h
+#define DartLibraryIds_h
namespace blink {
-static unsigned long s_uniqueIdentifier = 0;
+enum {
+ DartJsLibraryId = 0,
+ DartBlinkLibraryId,
+ DartHtmlLibraryId,
+ DartSvgLibraryId,
-unsigned long createUniqueIdentifier()
-{
- return ++s_uniqueIdentifier;
-}
+ NumDartLibraryIds,
+};
-} // namespace blink
+} // namespace blink
+#endif // DartLibraryIds_h
« no previous file with comments | « sky/engine/bindings-dart/core/dart/DartJsInteropData.cpp ('k') | sky/engine/bindings-dart/core/dart/DartMutationCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698