diff options
Diffstat (limited to 'components/script/dom/globalscope.rs')
-rw-r--r-- | components/script/dom/globalscope.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/components/script/dom/globalscope.rs b/components/script/dom/globalscope.rs new file mode 100644 index 00000000000..7c284987958 --- /dev/null +++ b/components/script/dom/globalscope.rs @@ -0,0 +1,18 @@ +/* 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 dom::eventtarget::EventTarget; + +#[dom_struct] +pub struct GlobalScope { + eventtarget: EventTarget, +} + +impl GlobalScope { + pub fn new_inherited() -> GlobalScope { + GlobalScope { + eventtarget: EventTarget::new_inherited(), + } + } +} |