Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: gecko-sdk/idl/nsIWebBrowserFind.idl

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gecko-sdk/idl/nsIWebBrowserChromeFocus.idl ('k') | gecko-sdk/idl/nsIWebBrowserFocus.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
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/
9 *
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.
14 *
15 * The Original Code is mozilla.org code.
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 2001
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 * Conrad Carlen <ccarlen@netscape.com>
24 * Simon Fraser <sfraser@netscape.com>
25 *
26 * Alternatively, the contents of this file may be used under the terms of
27 * either the GNU General Public License Version 2 or later (the "GPL"), or
28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the MPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the MPL, the GPL or the LGPL.
37 *
38 * ***** END LICENSE BLOCK ***** */
39
40 #include "nsISupports.idl"
41
42 #include "domstubs.idl"
43
44 /* THIS IS A PUBLIC EMBEDDING API */
45
46
47 /**
48 * nsIWebBrowserFind
49 *
50 * Searches for text in a web browser.
51 *
52 * Get one by doing a GetInterface on an nsIWebBrowser.
53 *
54 * By default, the implementation will search the focussed frame, or
55 * if there is no focussed frame, the web browser content area. It
56 * does not by default search subframes or iframes. To change this
57 * behaviour, and to explicitly set the frame to search,
58 * QueryInterface to nsIWebBrowserFindInFrames.
59 *
60 * @status FROZEN
61 */
62
63 [scriptable, uuid(2f977d44-5485-11d4-87e2-0010a4e75ef2)]
64 interface nsIWebBrowserFind : nsISupports
65 {
66 /**
67 * findNext
68 *
69 * Finds, highlights, and scrolls into view the next occurrence of the
70 * search string, using the current search settings. Fails if the
71 * search string is empty.
72 *
73 * @return Whether an occurrence was found
74 */
75 boolean findNext();
76
77 /**
78 * searchString
79 *
80 * The string to search for. This must be non-empty to search.
81 */
82 attribute wstring searchString;
83
84 /**
85 * findBackwards
86 *
87 * Whether to find backwards (towards the beginning of the document).
88 * Default is false (search forward).
89 */
90 attribute boolean findBackwards;
91
92 /**
93 * wrapFind
94 *
95 * Whether the search wraps around to the start (or end) of the document
96 * if no match was found between the current position and the end (or
97 * beginning). Works correctly when searching backwards. Default is
98 * false.
99 */
100 attribute boolean wrapFind;
101
102 /**
103 * entireWord
104 *
105 * Whether to match entire words only. Default is false.
106 */
107 attribute boolean entireWord;
108
109 /**
110 * matchCase
111 *
112 * Whether to match case (case sensitive) when searching. Default is false.
113 */
114 attribute boolean matchCase;
115
116 /**
117 * searchFrames
118 *
119 * Whether to search through all frames in the content area. Default is true .
120 *
121 * Note that you can control whether the search propagates into child or
122 * parent frames explicitly using nsIWebBrowserFindInFrames, but if one,
123 * but not both, of searchSubframes and searchParentFrames are set, this
124 * returns false.
125 */
126 attribute boolean searchFrames;
127 };
128
129
130
131 /**
132 * nsIWebBrowserFindInFrames
133 *
134 * Controls how find behaves when multiple frames or iframes are present.
135 *
136 * Get by doing a QueryInterface from nsIWebBrowserFind.
137 *
138 * @status FROZEN
139 */
140
141 [scriptable, uuid(e0f5d182-34bc-11d5-be5b-b760676c6ebc)]
142 interface nsIWebBrowserFindInFrames : nsISupports
143 {
144 /**
145 * currentSearchFrame
146 *
147 * Frame at which to start the search. Once the search is done, this will
148 * be set to be the last frame searched, whether or not a result was found.
149 * Has to be equal to or contained within the rootSearchFrame.
150 */
151 attribute nsIDOMWindow currentSearchFrame;
152
153 /**
154 * rootSearchFrame
155 *
156 * Frame within which to confine the search (normally the content area frame ).
157 * Set this to only search a subtree of the frame hierarchy.
158 */
159 attribute nsIDOMWindow rootSearchFrame;
160
161 /**
162 * searchSubframes
163 *
164 * Whether to recurse down into subframes while searching. Default is true.
165 *
166 * Setting nsIWebBrowserfind.searchFrames to true sets this to true.
167 */
168 attribute boolean searchSubframes;
169
170 /**
171 * searchParentFrames
172 *
173 * Whether to allow the search to propagate out of the currentSearchFrame in to its
174 * parent frame(s). Search is always confined within the rootSearchFrame. De fault
175 * is true.
176 *
177 * Setting nsIWebBrowserfind.searchFrames to true sets this to true.
178 */
179 attribute boolean searchParentFrames;
180
181 };
OLDNEW
« no previous file with comments | « gecko-sdk/idl/nsIWebBrowserChromeFocus.idl ('k') | gecko-sdk/idl/nsIWebBrowserFocus.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698