Files
sdk/client/html/src/OverflowEventWrappingImplementation.dart
T
nweiz@google.com 4b756816ea Add a script for determining which DOM methods correspond to which HTML methods.
Ultimately, this will be used for generating documentation. Currently, though,
it just prints out information to the console.

This also includes some annotations to the HTML library, where the DOM
correspondence couldn't be auto-detected.

Review URL: http://codereview.chromium.org//8548019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1767 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 23:39:59 +00:00

22 lines
886 B
Dart

// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class OverflowEventWrappingImplementation extends EventWrappingImplementation implements OverflowEvent {
OverflowEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
/** @domName OverflowEvent.initOverflowEvent */
factory OverflowEventWrappingImplementation(int orient,
bool horizontalOverflow, bool verticalOverflow) {
final e = dom.document.createEvent("OverflowEvent");
e.initOverflowEvent(orient, horizontalOverflow, verticalOverflow);
return LevelDom.wrapOverflowEvent(e);
}
bool get horizontalOverflow() => _ptr.horizontalOverflow;
int get orient() => _ptr.orient;
bool get verticalOverflow() => _ptr.verticalOverflow;
}