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

Unified Diff: mojo/python/system/mojo/embedder.pyx

Issue 843523002: Delete empty mojo python package, and prefix all python packages with mojo_ (Closed) Base URL: git@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
« no previous file with comments | « mojo/python/BUILD.gn ('k') | mojo/python/system/mojo/tests/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/python/system/mojo/embedder.pyx
diff --git a/mojo/python/system/mojo/embedder.pyx b/mojo/python/system/mojo/embedder.pyx
deleted file mode 100644
index 16ff9afce5ac351c29a70c3de804d6c915b46433..0000000000000000000000000000000000000000
--- a/mojo/python/system/mojo/embedder.pyx
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# distutils: language = c++
-
-from libc.stdint cimport uintptr_t
-from libcpp cimport bool
-
-from mojo import system
-from mojo import system_impl
-
-cdef extern from "third_party/cython/python_export.h":
- pass
-
-cdef extern from "base/memory/scoped_ptr.h":
- cdef cppclass scoped_ptr[T]:
- scoped_ptr(T*)
-
-cdef extern from "mojo/edk/embedder/platform_support.h" \
- namespace "mojo::embedder" nogil:
- cdef cppclass PlatformSupport:
- pass
-
-cdef extern from "mojo/edk/embedder/simple_platform_support.h" \
- namespace "mojo::embedder" nogil:
- cdef cppclass SimplePlatformSupport(PlatformSupport):
- SimplePlatformSupport()
-
-cdef extern from "mojo/edk/embedder/embedder.h" nogil:
- cdef void InitCEmbedder "mojo::embedder::Init"(
- scoped_ptr[PlatformSupport] platform_support)
-
-cdef extern from "mojo/public/platform/native/system_thunks.h" nogil:
- cdef struct MojoSystemThunks:
- pass
- cdef MojoSystemThunks MojoMakeSystemThunks()
-
-cdef extern from "mojo/edk/embedder/test_embedder.h" nogil:
- cdef bool ShutdownCEmbedderForTest "mojo::embedder::test::Shutdown"()
-
-def Init():
- InitCEmbedder(scoped_ptr[PlatformSupport](
- new SimplePlatformSupport()))
- cdef MojoSystemThunks thunks = MojoMakeSystemThunks()
- system.SetSystemThunks(<uintptr_t>(&thunks))
- system_impl.SetSystemThunks(<uintptr_t>(&thunks))
-
-def ShutdownForTest():
- return ShutdownCEmbedderForTest()
« no previous file with comments | « mojo/python/BUILD.gn ('k') | mojo/python/system/mojo/tests/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698