亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dom2_events.h

?? It is WEB browser core module with source code. Very good!
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
 * This file is part of the DOM implementation for KDE.
 *
 * (C) 2001 Peter Kelly (pmk@post.com)
 * Copyright (C) 2003 Apple Computer, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 */

#ifndef _DOM_Events_h_
#define _DOM_Events_h_

#include <dom/dom_node.h>
#include <dom/dom_misc.h>

namespace DOM {

class Event;
class EventException;
class UIEvent;
class MouseEvent;
class MutationEvent;
class KeyboardEvent;
class AbstractView;

class EventListenerImpl;
class EventImpl;
class UIEventImpl;
class MouseEventImpl;
class MutationEventImpl;
class KeyboardEventImpl;



/**
 * Introduced in DOM Level 2
 *
 * The EventListener interface is the primary method for handling events.
 * Users implement the EventListener interface and register their listener on
 * an EventTarget using the AddEventListener method. The users should also
 * remove their EventListener from its EventTarget after they have completed
 * using the listener.
 *
 * When a Node is copied using the cloneNode method the EventListeners attached
 * to the source Node are not attached to the copied Node. If the user wishes
 * the same EventListeners to be added to the newly created copy the user must
 * add them manually.
 *
 */
class EventListener : public DomShared {
public:
    EventListener();
    virtual ~EventListener();

    /**
     * This method is called whenever an event occurs of the type for which the
     * EventListener interface was registered. Parameters
     *
     * @param evt The Event contains contextual information about the event. It
     * also contains the stopPropagation and preventDefault methods which are
     * used in determining the event's flow and default action.
     *
     * @param isWindowEvent If true, the "this" should be the window, not the current
     * target (there is no DOM node for the window, so it can't be the target).
     *
     */
    virtual void handleEvent(Event &evt, bool isWindowEvent);

    /**
     * @internal
     * not part of the DOM
     *
     * Returns a name specifying the type of listener. Useful for checking
     * if an event is of a particular sublass.
     *
     */
    virtual DOMString eventListenerType();

protected:
    /**
     * @internal
     * Reserved. Do not use in your subclasses.
     */
    EventListenerImpl *impl;
};


/**
 * Introduced in DOM Level 2
 *
 * The Event interface is used to provide contextual information about an event
 * to the handler processing the event. An object which implements the Event
 * interface is generally passed as the first parameter to an event handler.
 * More specific context information is passed to event handlers by deriving
 * additional interfaces from Event which contain information directly relating
 * to the type of event they accompany. These derived interfaces are also
 * implemented by the object passed to the event listener.
 *
 */
class Event 
OOM_MODIFIED
{
    friend class Document;
    friend class NodeImpl;
    friend class DocumentImpl;
public:
    Event();
    Event(const Event &other);
    virtual ~Event();

    Event & operator = (const Event &other);

    /**
     * An integer indicating which phase of event flow is being processed.
     *
     * AT_TARGET: The event is currently being evaluated at the target
     * EventTarget.
     *
     * BUBBLING_PHASE: The current event phase is the bubbling phase.
     *
     * CAPTURING_PHASE: The current event phase is the capturing phase.
     *
     */
    enum PhaseType {
	CAPTURING_PHASE = 1,
	AT_TARGET = 2,
	BUBBLING_PHASE = 3
    };

    /**
     * The name of the event (case-insensitive). The name must be an XML name.
     *
     */
    DOMString type() const;

    /**
     * Used to indicate the EventTarget to which the event was originally
     * dispatched.
     *
     */
    Node target() const;

    /**
     * Used to indicate the EventTarget whose EventListeners are currently
     * being processed. This is particularly useful during capturing and
     * bubbling.
     *
     */
    Node currentTarget() const;

    /**
     * Used to indicate which phase of event flow is currently being evaluated.
     *
     */
    unsigned short eventPhase() const;

    /**
     * Used to indicate whether or not an event is a bubbling event. If the
     * event can bubble the value is true, else the value is false.
     *
     */
    bool bubbles() const;

    /**
     * Used to indicate whether or not an event can have its default action
     * prevented. If the default action can be prevented the value is true,
     * else the value is false.
     *
     */
    bool cancelable() const;

    /**
     * Used to specify the time (in milliseconds relative to the epoch) at
     * which the event was created. Due to the fact that some systems may not
     * provide this information the value of timeStamp may be not available for
     * all events. When not available, a value of 0 will be returned. Examples
     * of epoch time are the time of the system start or 0:0:0 UTC 1st January 1970.
     *
     */
    DOMTimeStamp timeStamp() const;

    /**
     * The stopPropagation method is used prevent further propagation of an
     * event during event flow. If this method is called by any EventListener
     * the event will cease propagating through the tree. The event will
     * complete dispatch to all listeners on the current EventTarget before
     * event flow stops. This method may be used during any stage of event flow.
     *
     */
    void stopPropagation();

    /**
     * If an event is cancelable, the preventDefault method is used to signify
     * that the event is to be canceled, meaning any default action normally
     * taken by the implementation as a result of the event will not occur. If,
     * during any stage of event flow, the preventDefault method is called the
     * event is canceled. Any default action associated with the event will not
     * occur. Calling this method for a non-cancelable event has no effect.
     * Once preventDefault has been called it will remain in effect throughout
     * the remainder of the event's propagation. This method may be used during
     * any stage of event flow.
     *
     */
    void preventDefault();

    /**
     * The initEvent method is used to initialize the value of an Event created
     * through the DocumentEvent interface. This method may only be called
     * before the Event has been dispatched via the dispatchEvent method,
     * though it may be called multiple times during that phase if necessary.
     * If called multiple times the final invocation takes precedence. If
     * called from a subclass of Event interface only the values specified in
     * the initEvent method are modified, all other attributes are left
     * unchanged.
     *
     * @param eventTypeArg Specifies the event type. This type may be any event
     * type currently defined in this specification or a new event type.. The
     * string must be an XML name.
     *
     * Any new event type must not begin with any upper, lower, or mixed case
     * version of the string "DOM". This prefix is reserved for future DOM
     * event sets. It is also strongly recommended that third parties adding
     * their own events use their own prefix to avoid confusion and lessen the
     * probability of conflicts with other new events.
     *
     * @param canBubbleArg Specifies whether or not the event can bubble.
     *
     * @param cancelableArg Specifies whether or not the event's default action can be prevented.
     *
     */
    void initEvent(const DOMString &eventTypeArg, bool canBubbleArg, bool cancelableArg);

    /**
     * @internal
     * not part of the DOM
     */
    EventImpl *handle() const;
    bool isNull() const;

    /* Nonstandard extensions needed to support widely used JS event properties */
    void setCancelBubble(bool cancel);
    void setDefaultPrevented(bool returnValue);
    bool getCancelBubble() const;
    bool defaultPrevented() const;

protected:
    Event(EventImpl *i);
    EventImpl *impl;
};


/**
 * Introduced in DOM Level 2:
 *
 * Event operations may throw an EventException as specified in their method
 * descriptions.
 *
 */
class EventException
OOM_MODIFIED
{
public:
    EventException(unsigned short _code);
    EventException(const EventException &other);
    EventException & operator = (const EventException &other);
    virtual ~EventException() {}

    /**
     * An integer indicating the type of error generated.
     *
     * UNSPECIFIED_EVENT_TYPE_ERR: If the Event's type was not specified by
     * initializing the event before the method was called. Specification of
     * the Event's type as null or an empty string will also trigger this
     * exception.
     *
     */
    enum EventExceptionCode {
        UNSPECIFIED_EVENT_TYPE_ERR     = 0
    };

    unsigned short code;
};


/**
 * Introduced in DOM Level 2
 *
 * The UIEvent interface provides specific contextual information associated
 * with User Interface events.
 *
 */
class UIEvent : public Event {
public:
    UIEvent();
    UIEvent(const UIEvent &other);
    UIEvent(const Event &other);
    UIEvent & operator = (const UIEvent &other);
    UIEvent & operator = (const Event &other);
    virtual ~UIEvent();

    /**
     * The view attribute identifies the AbstractView from which the event was
     * generated.
     *
     */
    AbstractView view() const;

    /**
     * Specifies some detail information about the Event, depending on the type
     * of event.
     *
     */
    long detail() const;

    /**
     * Non-standard extension to support IE-style keyCode event property.
     *
     */
    int keyCode() const;

    /**
     * Non-standard extension to support IE-style charCode event property.
     *
     */
    int charCode() const;

    /**
     * Non-standard extensions to support Netscape-style pageX and pageY event properties.
     *
     */
    int pageX() const;
    int pageY() const;

    /**
     * Non-standard extensions to support Netscape-style layerX and layerY event properties.
     *
     */
    int layerX() const;
    int layerY() const;

    /**
     * Non-standard extension to support Netscape-style "which" event property.
     *
     */
    int which() const;

    /**
     * The initUIEvent method is used to initialize the value of a UIEvent
     * created through the DocumentEvent interface. This method may only be
     * called before the UIEvent has been dispatched via the dispatchEvent
     * method, though it may be called multiple times during that phase if
     * necessary. If called multiple times, the final invocation takes
     * precedence.
     *
     * @param typeArg Specifies the event type.
     *
     * @param canBubbleArg Specifies whether or not the event can bubble.
     *
     * @param cancelableArg Specifies whether or not the event's default action
     * can be prevented.
     *
     * @param viewArg Specifies the Event's AbstractView.
     *
     * @param detailArg Specifies the Event's detail.
     *
     */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性色黄大片| 狠狠网亚洲精品| 色成人在线视频| 亚洲一级二级三级在线免费观看| 色婷婷激情久久| 视频一区二区欧美| 欧美成人精品1314www| 国产在线乱码一区二区三区| 国产欧美日韩三级| 一本大道久久a久久综合| 亚洲不卡一区二区三区| 日韩一区二区免费高清| 成人小视频免费观看| 亚洲精品免费看| 欧美不卡123| 91蝌蚪porny九色| 日本不卡一区二区三区| 中文字幕欧美激情| 欧美日韩一级片在线观看| 极品销魂美女一区二区三区| 国产精品久久久久久亚洲伦 | 日韩一区二区视频| 国产成人自拍网| 亚洲18女电影在线观看| 337p日本欧洲亚洲大胆精品| 91美女在线看| 久久精品国产亚洲aⅴ| 一区二区中文字幕在线| 欧美精品777| av电影在线观看不卡| 日韩综合小视频| 国产喷白浆一区二区三区| 欧美综合色免费| 国产一本一道久久香蕉| 性做久久久久久免费观看| 欧美高清在线精品一区| 日韩欧美一区二区三区在线| 色悠悠亚洲一区二区| 国产成a人无v码亚洲福利| 日韩va欧美va亚洲va久久| 中文字幕一区二区视频| 精品国产一区二区三区不卡| 欧美男生操女生| 99久久99久久精品国产片果冻| 另类专区欧美蜜桃臀第一页| 亚洲一区日韩精品中文字幕| 国产欧美日韩视频一区二区| 欧美va在线播放| 欧美日本一道本在线视频| www.视频一区| 国产一区二区三区久久悠悠色av| 日日骚欧美日韩| 一区二区三区欧美视频| 综合亚洲深深色噜噜狠狠网站| 欧美成人综合网站| 日韩一级片网站| 在线不卡的av| 欧美日韩精品欧美日韩精品一综合| 99在线视频精品| 高清不卡一二三区| 国产精品自拍一区| 韩国毛片一区二区三区| 蜜臀91精品一区二区三区 | 欧日韩精品视频| 成人激情av网| 福利电影一区二区| 丰满少妇在线播放bd日韩电影| 久久国产精品区| 久色婷婷小香蕉久久| 久久精品国产一区二区| 美女被吸乳得到大胸91| 日本免费在线视频不卡一不卡二| 午夜精品在线视频一区| 亚洲一区二区av电影| 亚洲成人手机在线| 天天操天天综合网| 婷婷激情综合网| 日本va欧美va欧美va精品| 日本亚洲视频在线| 精品亚洲成av人在线观看| 国产一区视频在线看| 国产成人在线观看免费网站| 国产精品亚洲第一| a亚洲天堂av| 色女孩综合影院| 在线欧美小视频| 欧美日韩国产在线播放网站| 91精品国产综合久久福利| 精品国产区一区| 国产三级久久久| 亚洲精品一二三四区| 色天使色偷偷av一区二区| 五月激情综合色| 欧美一级二级在线观看| 这里是久久伊人| 日韩视频免费观看高清完整版在线观看| 在线成人av网站| 久久综合色之久久综合| 中文字幕久久午夜不卡| 亚洲精品免费看| 日本美女一区二区三区| 国产a视频精品免费观看| 一本一道久久a久久精品| 91精品婷婷国产综合久久| 久久精品一二三| 一区二区三区久久久| 麻豆精品久久久| www.在线成人| 欧美一区二区三区在线视频| 欧美经典三级视频一区二区三区| 亚洲色图在线播放| 日本午夜精品视频在线观看| 成人av电影观看| 日韩一区二区三区av| 亚洲丝袜自拍清纯另类| 免费在线欧美视频| gogogo免费视频观看亚洲一| 欧美日韩亚洲国产综合| 国产视频一区二区在线| 香蕉久久一区二区不卡无毒影院| 91久久线看在观草草青青| av在线一区二区| 884aa四虎影成人精品一区| 国产精品无遮挡| 麻豆精品久久久| 日本韩国欧美一区| 亚洲国产精品v| 蜜桃视频一区二区三区在线观看| 97精品国产97久久久久久久久久久久| 8v天堂国产在线一区二区| 国产精品成人一区二区艾草| 久草精品在线观看| 欧美日本韩国一区| 亚洲精品欧美在线| 国产成人激情av| 精品久久久久久久一区二区蜜臀| 亚洲综合区在线| av一本久道久久综合久久鬼色| 日韩一级完整毛片| 舔着乳尖日韩一区| 日本韩国欧美在线| 国产精品久久久久久久久果冻传媒| 蜜臀av性久久久久蜜臀av麻豆| 色综合久久综合网97色综合 | 亚洲国产aⅴ成人精品无吗| 国产精品自拍三区| 欧美mv和日韩mv的网站| 日本欧美大码aⅴ在线播放| 在线免费一区三区| 亚洲免费色视频| 91在线视频免费91| 国产精品视频在线看| 国产精品综合二区| 久久亚洲综合av| 国产精品一线二线三线| 精品国产3级a| 狠狠色综合播放一区二区| 日韩美女视频一区二区在线观看| 亚洲第一搞黄网站| 欧美性视频一区二区三区| 亚洲综合一区二区三区| 在线观看不卡视频| 亚洲国产精品久久艾草纯爱 | 99精品国产视频| 中文字幕在线不卡视频| 99精品一区二区| 亚洲精品乱码久久久久| 91黄色免费观看| 亚洲一区在线观看免费| 欧美系列日韩一区| 偷拍与自拍一区| 日韩精品一区二区三区蜜臀| 精品一区二区在线观看| 久久日韩粉嫩一区二区三区| 久久99热这里只有精品| 久久夜色精品一区| av在线播放成人| 亚洲一二三四区| 717成人午夜免费福利电影| 九色综合狠狠综合久久| 国产偷国产偷亚洲高清人白洁 | 色综合天天综合给合国产| 亚洲精品乱码久久久久久| 欧美日韩久久久一区| 七七婷婷婷婷精品国产| 久久品道一品道久久精品| 成人免费视频一区| 亚洲一区二区欧美日韩| 日韩一区二区不卡| 成人一区二区三区视频在线观看| 日韩美女精品在线| 91精品久久久久久久91蜜桃| 国产一区二区三区视频在线播放| 国产精品免费视频网站| 欧美日韩国产精品自在自线| 国产乱码精品一区二区三区av| 中文字幕在线一区| 777久久久精品| 成人久久18免费网站麻豆| 亚洲国产视频在线|