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 HTMLProgressElement.
- Loading branch information
Tetsuharu OHZEKI
committed
Aug 24, 2013
1 parent
9b28443
commit 4fc2f74
Showing
10 changed files
with
86 additions
and
3 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
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
27 changes: 27 additions & 0 deletions
27
src/components/script/dom/bindings/codegen/HTMLProgressElement.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,27 @@ | ||
/* -*- 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-progress-element | ||
* | ||
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and | ||
* Opera Software ASA. You are granted a license to use, reproduce | ||
* and create derivative works of this document. | ||
*/ | ||
|
||
// original import from: | ||
// http://hg.mozilla.org/mozilla-central/filelog/8c240c67f76c/dom/webidl/HTMLProgressElement.webidl | ||
|
||
interface HTMLProgressElement : HTMLElement { | ||
[SetterThrows] | ||
attribute double value; | ||
[SetterThrows] | ||
attribute double max; | ||
readonly attribute double position; | ||
|
||
/* | ||
readonly attribute NodeList labels; | ||
*/ | ||
}; |
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,34 @@ | ||
/* 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::{ErrorResult}; | ||
use dom::htmlelement::HTMLElement; | ||
|
||
pub struct HTMLProgressElement { | ||
parent: HTMLElement, | ||
} | ||
|
||
impl HTMLProgressElement { | ||
pub fn Value(&self) -> f64 { | ||
0f64 | ||
} | ||
|
||
pub fn SetValue(&mut self, _value: f64, _rv: &mut ErrorResult) { | ||
} | ||
|
||
pub fn Max(&self) -> f64 { | ||
0f64 | ||
} | ||
|
||
pub fn SetMax(&mut self, _max: f64, _rv: &mut ErrorResult) { | ||
} | ||
|
||
pub fn Position(&self) -> f64 { | ||
0f64 | ||
} | ||
|
||
pub fn GetPositiom(&self, _rv: &mut ErrorResult) -> f64 { | ||
0f64 | ||
} | ||
} |
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
4fc2f74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from jdm
at tetsuharuohzeki@4fc2f74
4fc2f74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging saneyuki/servo/webidl = 4fc2f74 into auto
4fc2f74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saneyuki/servo/webidl = 4fc2f74 merged ok, testing candidate = 5647ca6
4fc2f74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
http://servo-buildbot.pub.build.mozilla.org/builders/linux/builds/282
http://servo-buildbot.pub.build.mozilla.org/builders/mac/builds/237
4fc2f74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 5647ca6