forked from mirrors/gecko-dev
		
	 b95407a112
			
		
	
	
		b95407a112
		
	
	
	
	
		
			
			Globals in that PR are now represented by the fake IDL interface `GlobalScope`. Source-Repo: https://github.com/servo/servo Source-Revision: a6e4b5bb86ad707a0863acff87344ca4239cfd2c --HG-- rename : servo/components/script/dom/webidls/ServoXMLParser.webidl => servo/components/script/dom/webidls/GlobalScope.webidl
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			982 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			982 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| /* 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::bindings::codegen::Bindings::XMLHttpRequestUploadBinding;
 | |
| use dom::bindings::js::Root;
 | |
| use dom::bindings::reflector::reflect_dom_object;
 | |
| use dom::globalscope::GlobalScope;
 | |
| use dom::xmlhttprequesteventtarget::XMLHttpRequestEventTarget;
 | |
| 
 | |
| #[dom_struct]
 | |
| pub struct XMLHttpRequestUpload {
 | |
|     eventtarget: XMLHttpRequestEventTarget
 | |
| }
 | |
| 
 | |
| impl XMLHttpRequestUpload {
 | |
|     fn new_inherited() -> XMLHttpRequestUpload {
 | |
|         XMLHttpRequestUpload {
 | |
|             eventtarget: XMLHttpRequestEventTarget::new_inherited(),
 | |
|         }
 | |
|     }
 | |
|     pub fn new(global: &GlobalScope) -> Root<XMLHttpRequestUpload> {
 | |
|         reflect_dom_object(box XMLHttpRequestUpload::new_inherited(),
 | |
|                            global,
 | |
|                            XMLHttpRequestUploadBinding::Wrap)
 | |
|     }
 | |
| }
 |