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

Unified Diff: sky/engine/bindings-dart/common/Nullable.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/common/Nullable.h
diff --git a/sky/engine/bindings/core/v8/Nullable.h b/sky/engine/bindings-dart/common/Nullable.h
similarity index 85%
copy from sky/engine/bindings/core/v8/Nullable.h
copy to sky/engine/bindings-dart/common/Nullable.h
index bed146b405a02fb17bbdd4c88c4bd1fac3205e60..590c09ad3873a84ddd795586982dc1e10f35792c 100644
--- a/sky/engine/bindings/core/v8/Nullable.h
+++ b/sky/engine/bindings-dart/common/Nullable.h
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SKY_ENGINE_BINDINGS_CORE_V8_NULLABLE_H_
-#define SKY_ENGINE_BINDINGS_CORE_V8_NULLABLE_H_
+#ifndef Nullable_h
+#define Nullable_h
-#include "sky/engine/platform/heap/Handle.h"
-#include "sky/engine/wtf/Assertions.h"
+#include "platform/heap/Handle.h"
+#include "wtf/Assertions.h"
namespace blink {
@@ -51,6 +51,11 @@ public:
return (m_isNull && other.m_isNull) || (!m_isNull && !other.m_isNull && m_value == other.m_value);
}
+ void trace(Visitor* visitor)
+ {
+ TraceIfNeeded<T>::trace(visitor, &m_value);
+ }
+
private:
T m_value;
bool m_isNull;
@@ -58,4 +63,4 @@ private:
} // namespace blink
-#endif // SKY_ENGINE_BINDINGS_CORE_V8_NULLABLE_H_
+#endif // Nullable_h
« no previous file with comments | « sky/engine/bindings-dart/common/ExceptionStatePlaceholder.cpp ('k') | sky/engine/bindings-dart/common/ScheduledAction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698