Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate bindings for HTMLTrackElement.
- Loading branch information
Tetsuharu OHZEKI
committed
Aug 31, 2013
1 parent
9919bae
commit d3108a8
Showing
8 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/components/script/dom/bindings/codegen/HTMLTrackElement.webidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | ||
/* 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/. | ||
* | ||
* The origin of this IDL file is | ||
* http://www.whatwg.org/specs/web-apps/current-work/#the-track-element | ||
*/ | ||
|
||
// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/ | ||
|
||
/* | ||
[Pref="media.webvtt.enabled"] | ||
*/ | ||
interface HTMLTrackElement : HTMLElement { | ||
[SetterThrows, Pure] | ||
attribute DOMString kind; | ||
[SetterThrows, Pure] | ||
attribute DOMString src; | ||
[SetterThrows, Pure] | ||
attribute DOMString srclang; | ||
[SetterThrows, Pure] | ||
attribute DOMString label; | ||
[SetterThrows, Pure] | ||
attribute boolean default; | ||
|
||
const unsigned short NONE = 0; | ||
const unsigned short LOADING = 1; | ||
const unsigned short LOADED = 2; | ||
const unsigned short ERROR = 3; | ||
readonly attribute unsigned short readyState; | ||
/* | ||
TODO: | ||
readonly attribute TextTrack track; | ||
*/ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* 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::utils::{DOMString, null_string, ErrorResult}; | ||
use dom::htmlelement::HTMLElement; | ||
|
||
pub struct HTMLTrackElement { | ||
parent: HTMLElement, | ||
} | ||
|
||
impl HTMLTrackElement { | ||
pub fn Kind(&self) -> DOMString { | ||
null_string | ||
} | ||
|
||
pub fn SetKind(&mut self, _kind: &DOMString, _rv: &mut ErrorResult) { | ||
} | ||
|
||
pub fn Src(&self) -> DOMString { | ||
null_string | ||
} | ||
|
||
pub fn SetSrc(&mut self, _src: &DOMString, _rv: &mut ErrorResult) { | ||
} | ||
|
||
pub fn Srclang(&self) -> DOMString { | ||
null_string | ||
} | ||
|
||
pub fn SetSrclang(&mut self, _srclang: &DOMString, _rv: &mut ErrorResult) { | ||
} | ||
|
||
pub fn Label(&self) -> DOMString { | ||
null_string | ||
} | ||
|
||
pub fn SetLabel(&mut self, _label: &DOMString, _rv: &mut ErrorResult) { | ||
} | ||
|
||
pub fn Default(&self) -> bool { | ||
false | ||
} | ||
|
||
pub fn SetDefault(&mut self, _default: bool, _rv: &mut ErrorResult) { | ||
} | ||
|
||
pub fn ReadyState(&self) -> u16 { | ||
0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters