9fa3103539
We will need to revisit how dartdoc is generated. For now this is the minimal set of files to preserve hand-crafted documentation. Review URL: https://codereview.chromium.org//11090010 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13378 260f80e4-7a28-3924-810f-c04153c831b5
107 lines
2.6 KiB
Plaintext
107 lines
2.6 KiB
Plaintext
// Copyright (c) 2012, 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.
|
|
|
|
// WARNING: Do not edit - generated code.
|
|
|
|
/// @domName Event
|
|
abstract class Event {
|
|
|
|
// In JS, canBubble and cancelable are technically required parameters to
|
|
// init*Event. In practice, though, if they aren't provided they simply
|
|
// default to false (since that's Boolean(undefined)).
|
|
//
|
|
// Contrary to JS, we default canBubble and cancelable to true, since that's
|
|
// what people want most of the time anyway.
|
|
factory Event(String type, [bool canBubble = true, bool cancelable = true]) =>
|
|
_EventFactoryProvider.createEvent(type, canBubble, cancelable);
|
|
|
|
static const int AT_TARGET = 2;
|
|
|
|
static const int BLUR = 8192;
|
|
|
|
static const int BUBBLING_PHASE = 3;
|
|
|
|
static const int CAPTURING_PHASE = 1;
|
|
|
|
static const int CHANGE = 32768;
|
|
|
|
static const int CLICK = 64;
|
|
|
|
static const int DBLCLICK = 128;
|
|
|
|
static const int DRAGDROP = 2048;
|
|
|
|
static const int FOCUS = 4096;
|
|
|
|
static const int KEYDOWN = 256;
|
|
|
|
static const int KEYPRESS = 1024;
|
|
|
|
static const int KEYUP = 512;
|
|
|
|
static const int MOUSEDOWN = 1;
|
|
|
|
static const int MOUSEDRAG = 32;
|
|
|
|
static const int MOUSEMOVE = 16;
|
|
|
|
static const int MOUSEOUT = 8;
|
|
|
|
static const int MOUSEOVER = 4;
|
|
|
|
static const int MOUSEUP = 2;
|
|
|
|
static const int NONE = 0;
|
|
|
|
static const int SELECT = 16384;
|
|
|
|
/** @domName Event.bubbles */
|
|
abstract bool get bubbles;
|
|
|
|
/** @domName Event.cancelBubble */
|
|
bool cancelBubble;
|
|
|
|
/** @domName Event.cancelable */
|
|
abstract bool get cancelable;
|
|
|
|
/** @domName Event.clipboardData */
|
|
abstract Clipboard get clipboardData;
|
|
|
|
/** @domName Event.currentTarget */
|
|
abstract EventTarget get currentTarget;
|
|
|
|
/** @domName Event.defaultPrevented */
|
|
abstract bool get defaultPrevented;
|
|
|
|
/** @domName Event.eventPhase */
|
|
abstract int get eventPhase;
|
|
|
|
/** @domName Event.returnValue */
|
|
bool returnValue;
|
|
|
|
/** @domName Event.srcElement */
|
|
abstract EventTarget get srcElement;
|
|
|
|
/** @domName Event.target */
|
|
abstract EventTarget get target;
|
|
|
|
/** @domName Event.timeStamp */
|
|
abstract int get timeStamp;
|
|
|
|
/** @domName Event.type */
|
|
abstract String get type;
|
|
|
|
/** @domName Event.initEvent */
|
|
void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg);
|
|
|
|
/** @domName Event.preventDefault */
|
|
void preventDefault();
|
|
|
|
/** @domName Event.stopImmediatePropagation */
|
|
void stopImmediatePropagation();
|
|
|
|
/** @domName Event.stopPropagation */
|
|
void stopPropagation();
|
|
}
|