Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # distutils: language = c++ | |
| 6 | |
| 7 from cpython.buffer cimport PyBUF_CONTIG | |
| 8 from cpython.buffer cimport PyBUF_CONTIG_RO | |
| 9 from cpython.buffer cimport Py_buffer | |
| 10 from cpython.buffer cimport PyBuffer_FillInfo | |
| 11 from cpython.buffer cimport PyBuffer_Release | |
| 12 from cpython.buffer cimport PyObject_GetBuffer | |
| 13 from cpython.mem cimport PyMem_Malloc, PyMem_Free | |
| 14 from libc.stdint cimport int32_t, int64_t, uint32_t, uint64_t, uintptr_t, intptr _t | |
|
qsr
2015/01/07 15:14:46
Do you need all those cimports?
etiennej
2015/01/08 11:23:13
Done.
| |
| 15 | |
| 16 cimport c_async_waiter | |
| 17 | |
| 18 cdef extern from "mojo/python/content_handler/python_system_impl_helper.h" \ | |
| 19 namespace "mojo::python" nogil: | |
| 20 cdef cppclass PythonRunLoop "mojo::python::PythonRunLoop": | |
| 21 PythonRunLoop() | |
| 22 void Run() | |
| 23 void RunUntilIdle() | |
| 24 void Quit() | |
| 25 void PostDelayedTask(object, int64_t) | |
| 26 cdef c_async_waiter.PythonAsyncWaiter* NewAsyncWaiter() | |
| 27 | |
| 28 | |
| OLD | NEW |