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

Side by Side Diff: client/html/generated/src/wrapping/_IDBKeyRangeWrappingImplementation.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // WARNING: Do not edit - generated code.
6
7 class IDBKeyRangeWrappingImplementation extends DOMWrapperBase implements IDBKey Range {
8 IDBKeyRangeWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9
10 IDBKey get lower() { return LevelDom.wrapIDBKey(_ptr.lower); }
11
12 bool get lowerOpen() { return _ptr.lowerOpen; }
13
14 IDBKey get upper() { return LevelDom.wrapIDBKey(_ptr.upper); }
15
16 bool get upperOpen() { return _ptr.upperOpen; }
17
18 IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen, bool upperOpen] ) {
19 if (lowerOpen === null) {
20 if (upperOpen === null) {
21 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level Dom.unwrap(upper)));
22 }
23 } else {
24 if (upperOpen === null) {
25 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level Dom.unwrap(upper), lowerOpen));
26 } else {
27 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level Dom.unwrap(upper), lowerOpen, upperOpen));
28 }
29 }
30 throw "Incorrect number or type of arguments";
31 }
32
33 IDBKeyRange lowerBound(IDBKey bound, [bool open]) {
34 if (open === null) {
35 return LevelDom.wrapIDBKeyRange(_ptr.lowerBound(LevelDom.unwrap(bound)));
36 } else {
37 return LevelDom.wrapIDBKeyRange(_ptr.lowerBound(LevelDom.unwrap(bound), op en));
38 }
39 }
40
41 IDBKeyRange only(IDBKey value) {
42 return LevelDom.wrapIDBKeyRange(_ptr.only(LevelDom.unwrap(value)));
43 }
44
45 IDBKeyRange upperBound(IDBKey bound, [bool open]) {
46 if (open === null) {
47 return LevelDom.wrapIDBKeyRange(_ptr.upperBound(LevelDom.unwrap(bound)));
48 } else {
49 return LevelDom.wrapIDBKeyRange(_ptr.upperBound(LevelDom.unwrap(bound), op en));
50 }
51 }
52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698