Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: client/dom/generated/src/wrapping/_HTMLSelectElementWrappingImplementation.dart

Issue 8591026: Roll DOM APIs forward on IDL & update Frog DOM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change window and document to getters Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/dom/generated/src/wrapping/_HTMLSelectElementWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_HTMLSelectElementWrappingImplementation.dart b/client/dom/generated/src/wrapping/_HTMLSelectElementWrappingImplementation.dart
index f63ca0eecd3b3039599b422471364a809e51a645..2ba3d78265fa4daa3dba72e0fa5c3a4e10f7dd21 100644
--- a/client/dom/generated/src/wrapping/_HTMLSelectElementWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_HTMLSelectElementWrappingImplementation.dart
@@ -107,11 +107,20 @@ class _HTMLSelectElementWrappingImplementation extends _HTMLElementWrappingImple
}
static Node _namedItem(receiver, name) native;
- void remove() {
- _remove(this);
- return;
+ void remove(var index_OR_option) {
+ if (index_OR_option is int) {
+ _remove(this, index_OR_option);
+ return;
+ } else {
+ if (index_OR_option is HTMLOptionElement) {
+ _remove_2(this, index_OR_option);
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
}
- static void _remove(receiver) native;
+ static void _remove(receiver, index_OR_option) native;
+ static void _remove_2(receiver, index_OR_option) native;
void setCustomValidity(String error) {
_setCustomValidity(this, error);

Powered by Google App Engine
This is Rietveld 408576698