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

Unified Diff: sky/engine/bindings-dart/core/dart/shared_lib/DartLibraryMain.cpp

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/shared_lib/DartLibraryMain.cpp
diff --git a/sky/engine/bindings/tests/idls/TestInterfaceDocument.idl b/sky/engine/bindings-dart/core/dart/shared_lib/DartLibraryMain.cpp
similarity index 86%
copy from sky/engine/bindings/tests/idls/TestInterfaceDocument.idl
copy to sky/engine/bindings-dart/core/dart/shared_lib/DartLibraryMain.cpp
index 2a687e871a44bace871a2d7b65243bbbdedc7339..e1a73345da4fccf48c166e464d0a6d980a43cf4a 100644
--- a/sky/engine/bindings/tests/idls/TestInterfaceDocument.idl
+++ b/sky/engine/bindings-dart/core/dart/shared_lib/DartLibraryMain.cpp
@@ -28,5 +28,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-interface TestInterfaceDocument : Document {
-};
+#if !defined(DART_SHARED_LIB)
+#error This is only intended to be used when Dart is used as a shared library.
+#endif
+
+// Unused entry point for a shared library containing the Dart VM.
+int main(int argc, char** argv)
+{
+ return 0;
+}

Powered by Google App Engine
This is Rietveld 408576698