28 references to Tracker
UIAutomationClient (28)
MS\Internal\Automation\ClientEventManager.cs (28)
47AddRootListener(Tracker.Focus, eventCallback, l); 54RemoveRootListener(AutomationElement.AutomationFocusChangedEvent, Tracker.Focus, eventCallback); 82if (_winEventTrackers[(int)Tracker.BoundingRect] == null && HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 92AddWinEventListener(Tracker.BoundingRect, new BoundingRectTracker()); 96if ( _winEventTrackers [(int)Tracker.MenuOpenedOrClosed] == null && (l.EventId == AutomationElement.MenuOpenedEvent || l.EventId == AutomationElement.MenuClosedEvent) ) 98AddWinEventListener( Tracker.MenuOpenedOrClosed, new MenuTracker( new MenuHandler( OnMenuEvent ) ) ); 105if (_winEventTrackers[(int)Tracker.WindowShowOrOpen] == null ) 107AddWinEventListener( Tracker.WindowShowOrOpen, new WindowShowOrOpenTracker( new WindowShowOrOpenHandler( OnWindowShowOrOpen ) ) ); 108AddWinEventListener( Tracker.WindowHideOrClose, new WindowHideOrCloseTracker( new WindowHideOrCloseHandler( OnWindowHideOrClose ) ) ); 113if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 115AddWinEventListener(Tracker.WindowInteractionState, new WindowInteractionStateTracker()); 120if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 122AddWinEventListener(Tracker.WindowVisualState, new WindowVisualStateTracker()); 223RemovePropertyTracker(AutomationElement.BoundingRectangleProperty, Tracker.BoundingRect); 233RemovePropertyTracker(WindowPattern.WindowInteractionStateProperty, Tracker.WindowInteractionState); 238RemovePropertyTracker(WindowPattern.WindowVisualStateProperty, Tracker.WindowVisualState); 246RemoveWinEventListener(Tracker.WindowShowOrOpen, new WindowShowOrOpenHandler(OnWindowShowOrOpen)); 247RemoveWinEventListener( Tracker.WindowHideOrClose, new WindowHideOrCloseHandler( OnWindowHideOrClose ) ); 255private static void RemovePropertyTracker(AutomationProperty property, Tracker tracker) 286RemoveWinEventListener(Tracker.MenuOpenedOrClosed, new MenuHandler(OnMenuEvent)); 398for (i=0; i<(int)Tracker.NumEventTrackers; i++) 461private static WinEventWrap GetNewRootTracker(Tracker idx) 463if (idx == Tracker.Focus) 474private static void AddRootListener(Tracker idx, Delegate eventCallback, EventListener l) 500private static void RemoveRootListener(AutomationEvent eventId, Tracker idx, Delegate eventCallback) 510private static void AddWinEventListener(Tracker idx, WinEventWrap eventWrapper) 520private static void RemoveWinEventListener(Tracker idx, Delegate eventCallback) 727private static WinEventWrap [] _winEventTrackers = new WinEventWrap[(int)Tracker.NumEventTrackers];