Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / third_party / isimpledom / ISimpleDOMDocument.idl
blob3153cbfb562fe75f3a69d442a8180c454baf20af
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
22 * Contributor(s):
23 * Author: Aaron Leventhal (aaronl@netscape.com)
25 * Alternatively, the contents of this file may be used under the terms of
26 * either of the GNU General Public License Version 2 or later (the "GPL"),
27 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 cpp_quote("///////////////////////////////////////////////////////////////////////////////////////////////////////")
40 cpp_quote("//")
41 cpp_quote("// ISimpleDOMDocument")
42 cpp_quote("//")
43 cpp_quote("// @STATUS UNDER_REVIEW")
44 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
45 cpp_quote("//")
46 cpp_quote("// get_URL(out] BSTR *url)")
47 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
48 cpp_quote("// Get the internet URL associated with this document.")
49 cpp_quote("//")
50 cpp_quote("// get_title([out BSTR *title")
51 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
52 cpp_quote("// Get the document's title from the <TITLE> element")
53 cpp_quote("//")
54 cpp_quote("// get_mimeType([out BSTR *mimeType")
55 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
56 cpp_quote("// Get the registered mime type, such as text/html")
57 cpp_quote("//")
58 cpp_quote("// get_docType([out] BSTR *docType")
59 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
60 cpp_quote("// Get doctype associated with the <!DOCTYPE ..> element")
61 cpp_quote("//")
62 cpp_quote("// get_nameSpaceURIForID([in] short nameSpaceID, [out] BSTR *nameSpaceURI)")
63 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
64 cpp_quote("// Some of the methods for ISimpleDOMNode return a nameSpaceID (-1,0,1,2,3,....)")
65 cpp_quote("// This method returns the associated namespace URI for each ID.")
66 cpp_quote("//")
67 cpp_quote("// set_alternateViewMediaTypes([in] BSTR *commaSeparatedMediaType)")
68 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
69 cpp_quote("// For style property retrieval on nsISimpleDOMNode elements, ")
70 cpp_quote("// set the additional alternate media types that properties are available for.")
71 cpp_quote("// [in] BSTR *commaSeparatedMediaTypes is a comma separate list, for example \"aural, braille\".")
72 cpp_quote("// The alternate media properties are requested with nsISimpleDOMNode::get_computedStyle.")
73 cpp_quote("// Note: setting this value on a document will increase memory overhead, and may create a small delay.")
74 cpp_quote("//")
75 cpp_quote("// W3C media Types:")
76 cpp_quote("// * all: Suitable for all devices. ")
77 cpp_quote("// * aural: Intended for speech synthesizers. See the section on aural style sheets for details. ")
78 cpp_quote("// * braille: Intended for braille tactile feedback devices. ")
79 cpp_quote("// * embossed: Intended for paged braille printers. ")
80 cpp_quote("// * handheld: Intended for handheld devices - typically small screen, monochrome, limited bandwidth. ")
81 cpp_quote("// * print: Intended for paged, opaque material and for documents viewed on screen in print preview mode. Please consult the section on paged media for information about formatting issues that are specific to paged media. ")
82 cpp_quote("// * projection: Intended for projected presentations, for example projectors or print to transparencies. Please consult the section on paged media for information about formatting issues that are specific to paged media. ")
83 cpp_quote("// * screen: Intended primarily for color computer screens. ")
84 cpp_quote("// * tty: intended for media using a fixed-pitch character grid, such as teletypes, terminals, or portable devices with limited display capabilities. Authors should not use pixel units with the tty media type. ")
85 cpp_quote("// * tv: Intended for television-type devices - low resolution, color, limited-scrollability screens, sound")
86 cpp_quote("// * See latest W3C CSS specs for complete list of media types")
87 cpp_quote("//")
88 cpp_quote("//")
89 cpp_quote("///////////////////////////////////////////////////////////////////////////////////////////////////////")
90 cpp_quote("")
91 cpp_quote("")
93 import "objidl.idl";
94 import "oaidl.idl";
97 const long DISPID_DOC_URL = -5904;
98 const long DISPID_DOC_TITLE = -5905;
99 const long DISPID_DOC_MIMETYPE = -5906;
100 const long DISPID_DOC_DOCTYPE = -5907;
101 const long DISPID_DOC_NAMESPACE = -5908;
102 const long DISPID_DOC_MEDIATYPES = -5909;
104 [object, uuid(0D68D6D0-D93D-4d08-A30D-F00DD1F45B24)]
105 interface ISimpleDOMDocument : IUnknown
107 [propget, id(DISPID_DOC_URL)] HRESULT URL(
108 [out, retval] BSTR * url
110 [propget, id(DISPID_DOC_TITLE)] HRESULT title(
111 [out, retval] BSTR * title
113 [propget, id(DISPID_DOC_MIMETYPE)] HRESULT mimeType(
114 [out, retval] BSTR * mimeType
116 [propget, id(DISPID_DOC_DOCTYPE)] HRESULT docType(
117 [out, retval] BSTR * docType
119 [propget, id(DISPID_DOC_NAMESPACE)] HRESULT nameSpaceURIForID(
120 [in] short nameSpaceID,
121 [out, retval] BSTR * nameSpaceURI
123 [propput, id(DISPID_DOC_MEDIATYPES)] HRESULT alternateViewMediaTypes(
124 [in] BSTR * commaSeparatedMediaTypes