LCOV - code coverage report
Current view: top level - layout/style - nsICSSLoaderObserver.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : /* internal interface for observing CSS style sheet loads */
       7             : 
       8             : #ifndef nsICSSLoaderObserver_h___
       9             : #define nsICSSLoaderObserver_h___
      10             : 
      11             : #include "nsISupports.h"
      12             : 
      13             : #define NS_ICSSLOADEROBSERVER_IID \
      14             : { 0xf51fbf2c, 0xfe4b, 0x4a15, \
      15             :   { 0xaf, 0x7e, 0x5e, 0x20, 0x64, 0x5f, 0xaf, 0x58 } }
      16             : 
      17             : namespace mozilla {
      18             :   class StyleSheet;
      19             : }
      20             : 
      21         131 : class nsICSSLoaderObserver : public nsISupports {
      22             : public:
      23             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICSSLOADEROBSERVER_IID)
      24             : 
      25             :   /**
      26             :    * StyleSheetLoaded is called after aSheet is marked complete and before any
      27             :    * load events associated with aSheet are fired.
      28             :    * @param aSheet the sheet that was loaded. Guaranteed to always be
      29             :    *        non-null, even if aStatus indicates failure.
      30             :    * @param aWasAlternate whether the sheet was an alternate.  This will always
      31             :    *        match the value LoadStyleLink or LoadInlineStyle returned in
      32             :    *        aIsAlternate if one of those methods were used to load the sheet,
      33             :    *        and will always be false otherwise.
      34             :    * @param aStatus is a success code if the sheet loaded successfully and a
      35             :    *        failure code otherwise.  Note that successful load of aSheet
      36             :    *        doesn't indicate anything about whether the data actually parsed
      37             :    *        as CSS, and doesn't indicate anything about the status of any child
      38             :    *        sheets of aSheet.
      39             :    */
      40             :   NS_IMETHOD StyleSheetLoaded(mozilla::StyleSheet* aSheet,
      41             :                               bool aWasAlternate,
      42             :                               nsresult aStatus) = 0;
      43             : };
      44             : 
      45             : NS_DEFINE_STATIC_IID_ACCESSOR(nsICSSLoaderObserver, NS_ICSSLOADEROBSERVER_IID)
      46             : 
      47             : #endif // nsICSSLoaderObserver_h___

Generated by: LCOV version 1.13