Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 21:42:36 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-01-21 12:10:30 +03:00
|
|
|
|
2016-01-12 07:19:08 +03:00
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "nsIDOMWindow.idl"
|
2001-01-21 12:10:30 +03:00
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
interface mozIDOMWindow;
|
|
|
|
interface mozIDOMWindowProxy;
|
|
|
|
|
2003-01-15 02:05:52 +03:00
|
|
|
/**
|
|
|
|
* The nsIDOMUIEvent interface is the datatype for all UI events in the
|
|
|
|
* Document Object Model.
|
|
|
|
*
|
|
|
|
* For more information on this interface please see
|
|
|
|
* http://www.w3.org/TR/DOM-Level-2-Events/
|
|
|
|
*/
|
|
|
|
|
2016-01-12 07:19:08 +03:00
|
|
|
%{C++
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
class Event;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|
|
|
|
|
|
|
|
[ptr] native EventPtr(mozilla::dom::Event);
|
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
[builtinclass, uuid(85ae52eb-37fa-4fd9-a2e6-c7d0f2a521b3)]
|
2016-01-12 07:19:08 +03:00
|
|
|
interface nsIDOMUIEvent : nsISupports
|
2001-01-21 12:10:30 +03:00
|
|
|
{
|
2016-01-30 20:05:36 +03:00
|
|
|
readonly attribute mozIDOMWindowProxy view;
|
2001-01-22 07:34:24 +03:00
|
|
|
readonly attribute long detail;
|
|
|
|
void initUIEvent(in DOMString typeArg,
|
|
|
|
in boolean canBubbleArg,
|
|
|
|
in boolean cancelableArg,
|
2016-01-30 20:05:36 +03:00
|
|
|
in mozIDOMWindow viewArg,
|
2001-01-22 07:34:24 +03:00
|
|
|
in long detailArg);
|
2011-08-26 11:43:49 +04:00
|
|
|
|
|
|
|
const long SCROLL_PAGE_UP = -32768;
|
|
|
|
const long SCROLL_PAGE_DOWN = 32768;
|
|
|
|
|
|
|
|
readonly attribute long layerX;
|
|
|
|
readonly attribute long layerY;
|
|
|
|
readonly attribute long pageX;
|
|
|
|
readonly attribute long pageY;
|
|
|
|
readonly attribute unsigned long which;
|
|
|
|
readonly attribute nsIDOMNode rangeParent;
|
|
|
|
readonly attribute long rangeOffset;
|
|
|
|
|
|
|
|
attribute boolean cancelBubble;
|
|
|
|
|
|
|
|
readonly attribute boolean isChar;
|
2016-01-12 07:19:08 +03:00
|
|
|
|
|
|
|
[notxpcom, nostdcall] EventPtr AsEvent();
|
2001-01-21 12:10:30 +03:00
|
|
|
};
|