diff options
author | rockot <rockot@chromium.org> | 2015-11-12 17:33:59 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-13 01:34:47 +0000 |
commit | 85dce086001825a2faa4e75755a669f5e08a1cad (patch) | |
tree | 722de1d974f799b3d1ee1ca4c81bb8b0fa75a95d /mojo/public/js/threading.js | |
parent | 415b73b1a400a994a86e6f29709aa0271e895dd5 (diff) | |
download | chromium_src-85dce086001825a2faa4e75755a669f5e08a1cad.zip chromium_src-85dce086001825a2faa4e75755a669f5e08a1cad.tar.gz chromium_src-85dce086001825a2faa4e75755a669f5e08a1cad.tar.bz2 |
Move third_party/mojo/src/mojo/public to mojo/public
BUG=None
NOPRESUBMIT=true
Review URL: https://codereview.chromium.org/1410053006
Cr-Commit-Position: refs/heads/master@{#359461}
Diffstat (limited to 'mojo/public/js/threading.js')
-rw-r--r-- | mojo/public/js/threading.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mojo/public/js/threading.js b/mojo/public/js/threading.js new file mode 100644 index 0000000..cfe5037 --- /dev/null +++ b/mojo/public/js/threading.js @@ -0,0 +1,21 @@ +// 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. + +// Module "mojo/public/js/threading" +// +// Note: This file is for documentation purposes only. The code here is not +// actually executed. The real module is implemented natively in Mojo. +// +// This module provides a way for a Mojo application implemented in JS +// to exit by quitting the current message loop. This module is not +// intended to be used by Mojo JS application started by the JS +// content handler. + +while (1); + +/** + * Quits the current message loop, esssentially: + * base::MessageLoop::current()->QuitNow(); +*/ +function quit() { [native code] } |