28 references to Tracker
UIAutomationClient (28)
MS\Internal\Automation\ClientEventManager.cs (28)
43AddRootListener(Tracker.Focus, eventCallback, l); 50RemoveRootListener(AutomationElement.AutomationFocusChangedEvent, Tracker.Focus, eventCallback); 78if (_winEventTrackers[(int)Tracker.BoundingRect] == null && HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 88AddWinEventListener(Tracker.BoundingRect, new BoundingRectTracker()); 92if ( _winEventTrackers [(int)Tracker.MenuOpenedOrClosed] == null && (l.EventId == AutomationElement.MenuOpenedEvent || l.EventId == AutomationElement.MenuClosedEvent) ) 94AddWinEventListener( Tracker.MenuOpenedOrClosed, new MenuTracker( new MenuHandler( OnMenuEvent ) ) ); 101if (_winEventTrackers[(int)Tracker.WindowShowOrOpen] == null ) 103AddWinEventListener( Tracker.WindowShowOrOpen, new WindowShowOrOpenTracker( new WindowShowOrOpenHandler( OnWindowShowOrOpen ) ) ); 104AddWinEventListener( Tracker.WindowHideOrClose, new WindowHideOrCloseTracker( new WindowHideOrCloseHandler( OnWindowHideOrClose ) ) ); 109if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 111AddWinEventListener(Tracker.WindowInteractionState, new WindowInteractionStateTracker()); 116if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 118AddWinEventListener(Tracker.WindowVisualState, new WindowVisualStateTracker()); 216RemovePropertyTracker(AutomationElement.BoundingRectangleProperty, Tracker.BoundingRect); 226RemovePropertyTracker(WindowPattern.WindowInteractionStateProperty, Tracker.WindowInteractionState); 231RemovePropertyTracker(WindowPattern.WindowVisualStateProperty, Tracker.WindowVisualState); 239RemoveWinEventListener(Tracker.WindowShowOrOpen, new WindowShowOrOpenHandler(OnWindowShowOrOpen)); 240RemoveWinEventListener( Tracker.WindowHideOrClose, new WindowHideOrCloseHandler( OnWindowHideOrClose ) ); 248private static void RemovePropertyTracker(AutomationProperty property, Tracker tracker) 279RemoveWinEventListener(Tracker.MenuOpenedOrClosed, new MenuHandler(OnMenuEvent)); 391for (i=0; i<(int)Tracker.NumEventTrackers; i++) 454private static WinEventWrap GetNewRootTracker(Tracker idx) 456if (idx == Tracker.Focus) 467private static void AddRootListener(Tracker idx, Delegate eventCallback, EventListener l) 493private static void RemoveRootListener(AutomationEvent eventId, Tracker idx, Delegate eventCallback) 503private static void AddWinEventListener(Tracker idx, WinEventWrap eventWrapper) 513private static void RemoveWinEventListener(Tracker idx, Delegate eventCallback) 720private static WinEventWrap [] _winEventTrackers = new WinEventWrap[(int)Tracker.NumEventTrackers];