4b756816ea
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
22 lines
886 B
Dart
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;
|
|
}
|