/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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/. */ #ifndef nsIDocumentObserver_h___ #define nsIDocumentObserver_h___
// Document observer interface class nsIDocumentObserver : public nsIMutationObserver { public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCUMENT_OBSERVER_IID)
/** * Notify that a content model update is beginning. This call can be * nested.
*/ virtualvoid BeginUpdate(mozilla::dom::Document*) = 0;
/** * Notify that a content model update is finished. This call can be * nested.
*/ virtualvoid EndUpdate(mozilla::dom::Document*) = 0;
/** * Notify the observer that a document load is beginning.
*/ virtualvoid BeginLoad(mozilla::dom::Document*) = 0;
/** * Notify the observer that a document load has finished. Note that * the associated reflow of the document will be done <b>before</b> * EndLoad is invoked, not after.
*/ virtualvoid EndLoad(mozilla::dom::Document*) = 0;
/** * Notification that the state of an element has changed. (ie: gained or lost * focus, became active or hovered over) * * This method is called automatically by elements when their state is changed * (therefore there is normally no need to invoke this method directly). * * This notification is not sent when elements are added/removed from the * document (the other notifications are used for that). * * @param Document The document being observed * @param Element the piece of content that changed * @param ElementState the element states that changed
*/ virtualvoid ElementStateChanged(mozilla::dom::Document*,
mozilla::dom::Element*,
mozilla::dom::ElementState) = 0;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.