MOXSearchInfo.h (1224B)
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/. */ 7 8 #import "mozAccessible.h" 9 #include "Pivot.h" 10 11 using namespace mozilla::a11y; 12 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; 17 18 // The MOX accessible we should start searching from. 19 // This is a weak ref. 20 MOXAccessibleBase* mStartElem; 21 22 // The amount of matches we should return 23 int mResultLimit; 24 25 // The array of search keys to use during this search 26 NSMutableArray* mSearchKeys; 27 28 // Set to YES if we should search forward, NO if backward 29 BOOL mSearchForward; 30 31 // Set to YES if we should match on immediate descendants only, NO otherwise 32 BOOL mImmediateDescendantsOnly; 33 34 NSString* mSearchText; 35 } 36 37 - (id)initWithParameters:(NSDictionary*)params andRoot:(MOXAccessibleBase*)root; 38 39 - (NSArray*)performSearch; 40 41 - (void)dealloc; 42 43 @end