no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / accessible / mac / MOXSearchInfo.h
blob8f5e6f414d0915e7ac5bff5fe0b2e1cadaa834cc
1 /* clang-format off */
2 /* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 /* clang-format on */
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"
9 #include "Pivot.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
23 int mResultLimit;
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
29 BOOL mSearchForward;
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;
41 - (void)dealloc;
43 @end