webengine/osswebengine/WebCore/bindings/js/kjs_window.cpp
changeset 10 a359256acfc6
parent 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
   208   onsearch              Window::Onsearch            DontDelete
   208   onsearch              Window::Onsearch            DontDelete
   209   onselect              Window::Onselect            DontDelete
   209   onselect              Window::Onselect            DontDelete
   210   onsubmit              Window::Onsubmit            DontDelete
   210   onsubmit              Window::Onsubmit            DontDelete
   211   onunload              Window::Onunload            DontDelete
   211   onunload              Window::Onunload            DontDelete
   212   onbeforeunload        Window::Onbeforeunload      DontDelete
   212   onbeforeunload        Window::Onbeforeunload      DontDelete
       
   213   ononline              Window::Ononline            DontDelete
       
   214   onoffline             Window::Onoffline           DontDelete
   213 # -- Constructors --
   215 # -- Constructors --
   214   DOMException          Window::DOMException        DontDelete
   216   DOMException          Window::DOMException        DontDelete
   215   Image                 Window::Image               DontDelete
   217   Image                 Window::Image               DontDelete
   216   Option                Window::Option              DontDelete
   218   Option                Window::Option              DontDelete
   217   XMLHttpRequest        Window::XMLHttpRequest      DontDelete
   219   XMLHttpRequest        Window::XMLHttpRequest      DontDelete
   624      return getListener(exec,submitEvent);
   626      return getListener(exec,submitEvent);
   625    case Onbeforeunload:
   627    case Onbeforeunload:
   626       return getListener(exec, beforeunloadEvent);
   628       return getListener(exec, beforeunloadEvent);
   627     case Onunload:
   629     case Onunload:
   628      return getListener(exec, unloadEvent);
   630      return getListener(exec, unloadEvent);
       
   631    case Ononline:
       
   632      return getListener(exec, ononlineEvent);
       
   633    case Onoffline:
       
   634      return getListener(exec, onofflineEvent);
   629    }
   635    }
   630    ASSERT(0);
   636    ASSERT(0);
   631    return jsUndefined();
   637    return jsUndefined();
   632 }
   638 }
   633 
   639 
   843         setListener(exec, beforeunloadEvent, value);
   849         setListener(exec, beforeunloadEvent, value);
   844       return;
   850       return;
   845     case Onunload:
   851     case Onunload:
   846       if (isSafeScript(exec))
   852       if (isSafeScript(exec))
   847         setListener(exec, unloadEvent, value);
   853         setListener(exec, unloadEvent, value);
       
   854       return;
       
   855     case Ononline:
       
   856       if (isSafeScript(exec))
       
   857         setListener(exec, ononlineEvent, value);
       
   858       return;
       
   859     case Onoffline:
       
   860       if (isSafeScript(exec))
       
   861         setListener(exec, onofflineEvent, value);
   848       return;
   862       return;
   849     default:
   863     default:
   850       break;
   864       break;
   851     }
   865     }
   852   }
   866   }