aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/embedding/task.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-05-26 17:07:15 -0400
committerbors-servo <release+servo@mozilla.com>2014-05-26 17:07:15 -0400
commit112ce25a6dabdcf4a6abee20ae8ca2915b40eb84 (patch)
tree762f18999bd5effd57fb85c3e8521d5b7178bacf /src/components/embedding/task.rs
parent58d57c91913c49a0c47bd0ac4cba739e4460a6e4 (diff)
parent9f455a29aaad6ba659ebe79f1a9c74097b1f4ad5 (diff)
downloadservo-112ce25a6dabdcf4a6abee20ae8ca2915b40eb84.tar.gz
servo-112ce25a6dabdcf4a6abee20ae8ca2915b40eb84.zip
auto merge of #2408 : zmike/servo/embedding-invasion, r=jdm
This adds further support for crashing CEF and world domination. @larsbergstrom
Diffstat (limited to 'src/components/embedding/task.rs')
-rw-r--r--src/components/embedding/task.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/embedding/task.rs b/src/components/embedding/task.rs
new file mode 100644
index 00000000000..825a75f92bc
--- /dev/null
+++ b/src/components/embedding/task.rs
@@ -0,0 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+use libc::c_int;
+use types::cef_thread_id_t;
+
+//FIXME: this should check the current servo task I guess?
+#[no_mangle]
+pub extern "C" fn cef_currently_on(tid: cef_thread_id_t) -> c_int {
+ 1
+}