Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
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/. */
6 /* internal interface for observing CSS style sheet loads */
8 #ifndef nsICSSLoaderObserver_h___
9 #define nsICSSLoaderObserver_h___
11 #include "nsISupports.h"
13 #define NS_ICSSLOADEROBSERVER_IID \
14 { 0x7eb90c74, 0xea0c, 0x4df5, \
15 {0xa1, 0x5f, 0x95, 0xf0, 0x6a, 0x98, 0xb9, 0x40} }
17 class nsCSSStyleSheet;
19 class nsICSSLoaderObserver : public nsISupports {
20 public:
21 NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICSSLOADEROBSERVER_IID)
23 /**
24 * StyleSheetLoaded is called after aSheet is marked complete and before any
25 * load events associated with aSheet are fired.
26 * @param aSheet the sheet that was loaded. Guaranteed to always be
27 * non-null, even if aStatus indicates failure.
28 * @param aWasAlternate whether the sheet was an alternate. This will always
29 * match the value LoadStyleLink or LoadInlineStyle returned in
30 * aIsAlternate if one of those methods were used to load the sheet,
31 * and will always be false otherwise.
32 * @param aStatus is a success code if the sheet loaded successfully and a
33 * failure code otherwise. Note that successful load of aSheet
34 * doesn't indicate anything about whether the data actually parsed
35 * as CSS, and doesn't indicate anything about the status of any child
36 * sheets of aSheet.
37 */
38 NS_IMETHOD StyleSheetLoaded(nsCSSStyleSheet* aSheet, bool aWasAlternate,
39 nsresult aStatus) = 0;
40 };
42 NS_DEFINE_STATIC_IID_ACCESSOR(nsICSSLoaderObserver, NS_ICSSLOADEROBSERVER_IID)
44 #endif // nsICSSLoaderObserver_h___