webengine/osswebengine/WebCore/dom/UIEvent.cpp
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /**
       
     2  * This file is part of the DOM implementation for KDE.
       
     3  *
       
     4  * Copyright (C) 2001 Peter Kelly (pmk@post.com)
       
     5  * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
       
     6  * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
       
     7  * Copyright (C) 2003, 2005, 2006 Apple Computer, Inc.
       
     8  *
       
     9  * This library is free software; you can redistribute it and/or
       
    10  * modify it under the terms of the GNU Library General Public
       
    11  * License as published by the Free Software Foundation; either
       
    12  * version 2 of the License, or (at your option) any later version.
       
    13  *
       
    14  * This library is distributed in the hope that it will be useful,
       
    15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    17  * Library General Public License for more details.
       
    18  *
       
    19  * You should have received a copy of the GNU Library General Public License
       
    20  * along with this library; see the file COPYING.LIB.  If not, write to
       
    21  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
       
    22  * Boston, MA 02110-1301, USA.
       
    23  */
       
    24 
       
    25 #include "config.h"
       
    26 #include "UIEvent.h"
       
    27 
       
    28 #include "DOMWindow.h"
       
    29 
       
    30 namespace WebCore {
       
    31 
       
    32 UIEvent::UIEvent()
       
    33     : m_detail(0)
       
    34 {
       
    35 }
       
    36 
       
    37 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, AbstractView* viewArg, int detailArg)
       
    38     : Event(eventType, canBubbleArg, cancelableArg)
       
    39     , m_view(viewArg)
       
    40     , m_detail(detailArg)
       
    41 {
       
    42 }
       
    43 
       
    44 UIEvent::~UIEvent()
       
    45 {
       
    46 }
       
    47 
       
    48 void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, AbstractView* viewArg, int detailArg)
       
    49 {
       
    50     if (dispatched())
       
    51         return;
       
    52 
       
    53     initEvent(typeArg, canBubbleArg, cancelableArg);
       
    54 
       
    55     m_view = viewArg;
       
    56     m_detail = detailArg;
       
    57 }
       
    58 
       
    59 bool UIEvent::isUIEvent() const
       
    60 {
       
    61     return true;
       
    62 }
       
    63 
       
    64 int UIEvent::keyCode() const
       
    65 {
       
    66     return 0;
       
    67 }
       
    68 
       
    69 int UIEvent::charCode() const
       
    70 {
       
    71     return 0;
       
    72 }
       
    73 
       
    74 int UIEvent::layerX() const
       
    75 {
       
    76     return 0;
       
    77 }
       
    78 
       
    79 int UIEvent::layerY() const
       
    80 {
       
    81     return 0;
       
    82 }
       
    83 
       
    84 int UIEvent::pageX() const
       
    85 {
       
    86     return 0;
       
    87 }
       
    88 
       
    89 int UIEvent::pageY() const
       
    90 {
       
    91     return 0;
       
    92 }
       
    93 
       
    94 int UIEvent::which() const
       
    95 {
       
    96     return 0;
       
    97 }
       
    98 
       
    99 } // namespace WebCore