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 #include
"nsISupports.idl"
13 webidl BrowsingContext
;
16 * This interface represents a content node that loads objects.
18 * Please make sure to update the MozObjectLoadingContent WebIDL
19 * mixin to mirror this interface when changing it.
22 [scriptable
, builtinclass
, uuid(2eb3195e
-3eea
-4083-bb1d
-d2d70fa35ccb
)]
23 interface nsIObjectLoadingContent
: nsISupports
26 * See notes in nsObjectLoadingContent.h
28 const unsigned long TYPE_LOADING
= 0;
29 const unsigned long TYPE_DOCUMENT
= 1;
30 const unsigned long TYPE_FALLBACK
= 2;
33 * The actual mime type (the one we got back from the network
34 * request) for the element.
36 readonly attribute ACString actualType
;
39 * Gets the type of the content that's currently loaded. See
40 * the constants above for the list of possible values.
42 readonly attribute
unsigned long displayedType
;
45 * The URL of the data/src loaded in the object. This may be null (i.e.
46 * an <embed> with no src).
48 readonly attribute nsIURI srcURI
;
51 * Switch the tag into the TYPE_DOCUMENT state, and returns the
52 * BrowsingContext which the load should complete in.
54 [noscript
] BrowsingContext upgradeLoadToDocument
(in nsIChannel channel
);