28 references to Tracker
UIAutomationClient (28)
MS\Internal\Automation\ClientEventManager.cs (28)
49AddRootListener(Tracker.Focus, eventCallback, l); 56RemoveRootListener(AutomationElement.AutomationFocusChangedEvent, Tracker.Focus, eventCallback); 84if (_winEventTrackers[(int)Tracker.BoundingRect] == null && HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 94AddWinEventListener(Tracker.BoundingRect, new BoundingRectTracker()); 98if ( _winEventTrackers [(int)Tracker.MenuOpenedOrClosed] == null && (l.EventId == AutomationElement.MenuOpenedEvent || l.EventId == AutomationElement.MenuClosedEvent) ) 100AddWinEventListener( Tracker.MenuOpenedOrClosed, new MenuTracker( new MenuHandler( OnMenuEvent ) ) ); 107if (_winEventTrackers[(int)Tracker.WindowShowOrOpen] == null ) 109AddWinEventListener( Tracker.WindowShowOrOpen, new WindowShowOrOpenTracker( new WindowShowOrOpenHandler( OnWindowShowOrOpen ) ) ); 110AddWinEventListener( Tracker.WindowHideOrClose, new WindowHideOrCloseTracker( new WindowHideOrCloseHandler( OnWindowHideOrClose ) ) ); 115if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 117AddWinEventListener(Tracker.WindowInteractionState, new WindowInteractionStateTracker()); 122if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 124AddWinEventListener(Tracker.WindowVisualState, new WindowVisualStateTracker()); 225RemovePropertyTracker(AutomationElement.BoundingRectangleProperty, Tracker.BoundingRect); 235RemovePropertyTracker(WindowPattern.WindowInteractionStateProperty, Tracker.WindowInteractionState); 240RemovePropertyTracker(WindowPattern.WindowVisualStateProperty, Tracker.WindowVisualState); 248RemoveWinEventListener(Tracker.WindowShowOrOpen, new WindowShowOrOpenHandler(OnWindowShowOrOpen)); 249RemoveWinEventListener( Tracker.WindowHideOrClose, new WindowHideOrCloseHandler( OnWindowHideOrClose ) ); 257private static void RemovePropertyTracker(AutomationProperty property, Tracker tracker) 288RemoveWinEventListener(Tracker.MenuOpenedOrClosed, new MenuHandler(OnMenuEvent)); 400for (i=0; i<(int)Tracker.NumEventTrackers; i++) 463private static WinEventWrap GetNewRootTracker(Tracker idx) 465if (idx == Tracker.Focus) 476private static void AddRootListener(Tracker idx, Delegate eventCallback, EventListener l) 502private static void RemoveRootListener(AutomationEvent eventId, Tracker idx, Delegate eventCallback) 512private static void AddWinEventListener(Tracker idx, WinEventWrap eventWrapper) 522private static void RemoveWinEventListener(Tracker idx, Delegate eventCallback) 729private static WinEventWrap [] _winEventTrackers = new WinEventWrap[(int)Tracker.NumEventTrackers];