docshell/base/nsIReflowObserver.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/base/nsIReflowObserver.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "domstubs.idl"
     1.9 +
    1.10 +[scriptable, uuid(832e692c-c4a6-11e2-8fd1-dce678957a39)]
    1.11 +interface nsIReflowObserver : nsISupports
    1.12 +{
    1.13 +  /**
    1.14 +   * Called when an uninterruptible reflow has occurred.
    1.15 +   *
    1.16 +   * @param start timestamp when reflow ended, in milliseconds since
    1.17 +   *              navigationStart (accurate to 1/1000 of a ms)
    1.18 +   * @param end   timestamp when reflow ended, in milliseconds since
    1.19 +   *              navigationStart (accurate to 1/1000 of a ms)
    1.20 +   */
    1.21 +  void reflow(in DOMHighResTimeStamp start,
    1.22 +              in DOMHighResTimeStamp end);
    1.23 +
    1.24 +  /**
    1.25 +   * Called when an interruptible reflow has occurred.
    1.26 +   *
    1.27 +   * @param start timestamp when reflow ended, in milliseconds since
    1.28 +   *              navigationStart (accurate to 1/1000 of a ms)
    1.29 +   * @param end   timestamp when reflow ended, in milliseconds since
    1.30 +   *              navigationStart (accurate to 1/1000 of a ms)
    1.31 +   */
    1.32 +  void reflowInterruptible(in DOMHighResTimeStamp start,
    1.33 +                           in DOMHighResTimeStamp end);
    1.34 +};

mercurial