aw: Move SharedRendererState out of AwContents
[chromium-blink-merge.git] / third_party / isimpledom / ISimpleDOMText.idl
blobb68d30def6e8a3a67c854227b4f25797e0c839e2
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * ***** BEGIN LICENSE BLOCK *****
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at
9 * http://www.mozilla.org/MPL/
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
16 * The Original Code is the Mozilla browser.
18 * The Initial Developer of the Original Code is
19 * Netscape Communications Corporation.
20 * Portions created by the Initial Developer are Copyright (C) 1999
21 * the Initial Developer. All Rights Reserved.
23 * Contributor(s):
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 import "objidl.idl";
40 import "oaidl.idl";
42 cpp_quote("///////////////////////////////////////////////////////////////////////////////////////////////////////")
43 cpp_quote("//")
44 cpp_quote("// ISimpleDOMText")
45 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
46 cpp_quote("// An interface that extends MSAA's IAccessible to provide important additional capabilities on text nodes")
47 cpp_quote("//")
48 cpp_quote("// @STATUS UNDER_REVIEW")
49 cpp_quote("//")
50 cpp_quote("// [propget] domText(/* out,retval */ BSTR *domText")
51 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
52 cpp_quote("// Similar to IAccessible::get_accName, but does not strip out whitespace characters.")
53 cpp_quote("// Important for retrieving the correct start/end substring indices to use with other")
54 cpp_quote("// methods in ISimpleDOMText.")
55 cpp_quote("//")
56 cpp_quote("//")
57 cpp_quote("// get_[un]clippedSubstringBounds(")
58 cpp_quote("// /* [in] */ unsigned int startIndex,")
59 cpp_quote("// /* [in] */ unsigned int endIndex,")
60 cpp_quote("// /* [out] */ int *x,")
61 cpp_quote("// /* [out] */ int *y,")
62 cpp_quote("// /* [out] */ int *width,")
63 cpp_quote("// /* [out] */ int *height);")
64 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
65 cpp_quote("// Both methods get_clippedSubstringBounds and get_unclippedSubstringBounds return the screen pixel")
66 cpp_quote("// coordinates of the given text substring. The in parameters for start and end indices refer")
67 cpp_quote("// to the string returned by ISimpleDOMText::get_domText().")
68 cpp_quote("//")
69 cpp_quote("//")
70 cpp_quote("// scrollToSubstring(")
71 cpp_quote("// /* [in] */ unsigned int startIndex,")
72 cpp_quote("// /* [in] */ unsigned int endIndex);")
73 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
74 cpp_quote("// In scrollable views, scrolls to ensure that the specified substring is visible onscreen.")
75 cpp_quote("// The in parameters for start and end indices refer to the string returned")
76 cpp_quote("// by ISimpleDOMText::get_domText().")
77 cpp_quote("//")
78 cpp_quote("//")
79 cpp_quote("// [propget] fontFamily(/* out,retval */ BSTR *fontFamily);")
80 cpp_quote("// ---------------------------------------------------------------------------------------------------=")
81 cpp_quote("// Return a single computed font family name, which is better than the comma delineated list")
82 cpp_quote("// that is returned by the ISimpleDOMNode computed style methods for font-family.")
83 cpp_quote("// In other words, return something like 'Arial' instead of 'Arial, Helvetica, Sans-serif'.")
84 cpp_quote("///////////////////////////////////////////////////////////////////////////////////////////////////////")
85 cpp_quote("")
86 cpp_quote("")
88 [object, uuid(4e747be5-2052-4265-8af0-8ecad7aad1c0)]
89 interface ISimpleDOMText: IUnknown
91 // Includes whitespace in DOM
92 [propget] HRESULT domText([out, retval] BSTR *domText);
94 HRESULT get_clippedSubstringBounds([in] unsigned int startIndex,
95 [in] unsigned int endIndex,
96 [out] int *x,
97 [out] int *y,
98 [out] int *width,
99 [out] int *height);
101 HRESULT get_unclippedSubstringBounds([in] unsigned int startIndex,
102 [in] unsigned int endIndex,
103 [out] int *x,
104 [out] int *y,
105 [out] int *width,
106 [out] int *height);
108 HRESULT scrollToSubstring([in] unsigned int startIndex,
109 [in] unsigned int endIndex);
111 [propget] HRESULT fontFamily([out, retval] BSTR *fontFamily);