2 /* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #import "mozAccessible.h"
11 using namespace mozilla::a11y
;
13 @interface MOXSearchInfo
: NSObject
{
14 // The MOX accessible of the web area, we need a reference
15 // to set the pivot's root. This is a weak ref.
16 MOXAccessibleBase
* mRoot
;
18 // The MOX accessible we should start searching from.
19 // This is a weak ref.
20 MOXAccessibleBase
* mStartElem
;
22 // The amount of matches we should return
25 // The array of search keys to use during this search
26 NSMutableArray
* mSearchKeys
;
28 // Set to YES if we should search forward, NO if backward
31 // Set to YES if we should match on immediate descendants only, NO otherwise
32 BOOL mImmediateDescendantsOnly
;
34 NSString
* mSearchText
;
37 - (id
)initWithParameters
:(NSDictionary
*)params andRoot
:(MOXAccessibleBase
*)root
;
39 - (NSArray
*)performSearch
;