28 references to Tracker
UIAutomationClient (28)
MS\Internal\Automation\ClientEventManager.cs (28)
57AddRootListener(Tracker.Focus, eventCallback, l); 64RemoveRootListener(AutomationElement.AutomationFocusChangedEvent, Tracker.Focus, eventCallback); 92if (_winEventTrackers[(int)Tracker.BoundingRect] == null && HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 102AddWinEventListener(Tracker.BoundingRect, new BoundingRectTracker()); 106if ( _winEventTrackers [(int)Tracker.MenuOpenedOrClosed] == null && (l.EventId == AutomationElement.MenuOpenedEvent || l.EventId == AutomationElement.MenuClosedEvent) ) 108AddWinEventListener( Tracker.MenuOpenedOrClosed, new MenuTracker( new MenuHandler( OnMenuEvent ) ) ); 115if (_winEventTrackers[(int)Tracker.WindowShowOrOpen] == null ) 117AddWinEventListener( Tracker.WindowShowOrOpen, new WindowShowOrOpenTracker( new WindowShowOrOpenHandler( OnWindowShowOrOpen ) ) ); 118AddWinEventListener( Tracker.WindowHideOrClose, new WindowHideOrCloseTracker( new WindowHideOrCloseHandler( OnWindowHideOrClose ) ) ); 123if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 125AddWinEventListener(Tracker.WindowInteractionState, new WindowInteractionStateTracker()); 130if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 132AddWinEventListener(Tracker.WindowVisualState, new WindowVisualStateTracker()); 233RemovePropertyTracker(AutomationElement.BoundingRectangleProperty, Tracker.BoundingRect); 243RemovePropertyTracker(WindowPattern.WindowInteractionStateProperty, Tracker.WindowInteractionState); 248RemovePropertyTracker(WindowPattern.WindowVisualStateProperty, Tracker.WindowVisualState); 256RemoveWinEventListener(Tracker.WindowShowOrOpen, new WindowShowOrOpenHandler(OnWindowShowOrOpen)); 257RemoveWinEventListener( Tracker.WindowHideOrClose, new WindowHideOrCloseHandler( OnWindowHideOrClose ) ); 265private static void RemovePropertyTracker(AutomationProperty property, Tracker tracker) 296RemoveWinEventListener(Tracker.MenuOpenedOrClosed, new MenuHandler(OnMenuEvent)); 408for (i=0; i<(int)Tracker.NumEventTrackers; i++) 471private static WinEventWrap GetNewRootTracker(Tracker idx) 473if (idx == Tracker.Focus) 484private static void AddRootListener(Tracker idx, Delegate eventCallback, EventListener l) 510private static void RemoveRootListener(AutomationEvent eventId, Tracker idx, Delegate eventCallback) 520private static void AddWinEventListener(Tracker idx, WinEventWrap eventWrapper) 530private static void RemoveWinEventListener(Tracker idx, Delegate eventCallback) 739private static WinEventWrap [] _winEventTrackers = new WinEventWrap[(int)Tracker.NumEventTrackers];