Home | History | Annotate | Download | only in html
      1 /*
      2  * Copyright (C) 2006, 2009, 2010 Apple Inc. All rights reserved.
      3  * Copyright (C) 2006 Samuel Weinig <sam.weinig (at) gmail.com>
      4  *
      5  * This library is free software; you can redistribute it and/or
      6  * modify it under the terms of the GNU Library General Public
      7  * License as published by the Free Software Foundation; either
      8  * version 2 of the License, or (at your option) any later version.
      9  *
     10  * This library is distributed in the hope that it will be useful,
     11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13  * Library General Public License for more details.
     14  *
     15  * You should have received a copy of the GNU Library General Public License
     16  * along with this library; see the file COPYING.LIB.  If not, write to
     17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
     18  * Boston, MA 02110-1301, USA.
     19  */
     20 
     21 module html {
     22 
     23     interface HTMLBodyElement : HTMLElement {
     24         attribute [Reflect] DOMString aLink;
     25         attribute [Reflect] DOMString background;
     26         attribute [Reflect] DOMString bgColor;
     27         attribute [Reflect] DOMString link;
     28         attribute [Reflect] DOMString text;
     29         attribute [Reflect] DOMString vLink;
     30 
     31 #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
     32         // Event handler attributes
     33         attribute [DontEnum, WindowEventListener] EventListener onbeforeunload;
     34         attribute [DontEnum, WindowEventListener] EventListener onhashchange;
     35         attribute [DontEnum, WindowEventListener] EventListener onmessage;
     36         attribute [DontEnum, WindowEventListener] EventListener onoffline;
     37         attribute [DontEnum, WindowEventListener] EventListener ononline;
     38         attribute [DontEnum, WindowEventListener] EventListener onpopstate;
     39         attribute [DontEnum, WindowEventListener] EventListener onresize;
     40         attribute [DontEnum, WindowEventListener] EventListener onstorage;
     41         attribute [DontEnum, WindowEventListener] EventListener onunload;
     42 
     43 #if defined(ENABLE_ORIENTATION_EVENTS) && ENABLE_ORIENTATION_EVENTS
     44         attribute [DontEnum, WindowEventListener] EventListener onorientationchange;
     45 #endif
     46 
     47         // Overrides of Element attributes (with different implementation in bindings).
     48         attribute [DontEnum, WindowEventListener] EventListener onblur;
     49         attribute [DontEnum, WindowEventListener] EventListener onerror;
     50         attribute [DontEnum, WindowEventListener] EventListener onfocus;
     51         attribute [DontEnum, WindowEventListener] EventListener onload;
     52 
     53         // Not implemented yet.
     54         // attribute [DontEnum, WindowEventListener] EventListener onafterprint;
     55         // attribute [DontEnum, WindowEventListener] EventListener onbeforeprint;
     56         // attribute [DontEnum, WindowEventListener] EventListener onredo;
     57         // attribute [DontEnum, WindowEventListener] EventListener onundo;
     58 #endif
     59     };
     60 
     61 }
     62