Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / ClientSideQueueItem.cs / 1 / ClientSideQueueItem.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Class to create a queue on its own thread. // // History: // 06/17/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System.Windows.Automation; using System.Windows.Automation.Provider; using System; using System.Collections; using System.ComponentModel; using MS.Internal.Automation; using MS.Win32; namespace MS.Internal.Automation { // Worker class used to queue events that originated on the client side (e.g. // used by focus and top-level window tracking to queue WinEvent information). internal class ClientSideQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) { _clientCallback = clientCallback; _srcEl = srcEl; _request = request; _e = e; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal override void Process() { // Grab properties for cache request here... AutomationElement src; if (_srcEl == null) { src = null; } else { UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_srcEl.RawNode, _request, UiaCoreApi.NormalizeState.View, null); src = CacheHelper.BuildAutomationElementsFromResponse(_request, response); } // if (!(src == null && _e.EventId == AutomationElement.AutomationFocusChangedEvent)) InvokeHandlers.InvokeClientHandler(_clientCallback, src, _e); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private Delegate _clientCallback; // a client callback delegate private AutomationElement _srcEl; // the source element private UiaCoreApi.UiaCacheRequest _request; // shopping list for prefetch private AutomationEventArgs _e; // the event args for the callback #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Class to create a queue on its own thread. // // History: // 06/17/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System.Windows.Automation; using System.Windows.Automation.Provider; using System; using System.Collections; using System.ComponentModel; using MS.Internal.Automation; using MS.Win32; namespace MS.Internal.Automation { // Worker class used to queue events that originated on the client side (e.g. // used by focus and top-level window tracking to queue WinEvent information). internal class ClientSideQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) { _clientCallback = clientCallback; _srcEl = srcEl; _request = request; _e = e; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal override void Process() { // Grab properties for cache request here... AutomationElement src; if (_srcEl == null) { src = null; } else { UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_srcEl.RawNode, _request, UiaCoreApi.NormalizeState.View, null); src = CacheHelper.BuildAutomationElementsFromResponse(_request, response); } // if (!(src == null && _e.EventId == AutomationElement.AutomationFocusChangedEvent)) InvokeHandlers.InvokeClientHandler(_clientCallback, src, _e); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private Delegate _clientCallback; // a client callback delegate private AutomationElement _srcEl; // the source element private UiaCoreApi.UiaCacheRequest _request; // shopping list for prefetch private AutomationEventArgs _e; // the event args for the callback #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AuthorizationContext.cs
- QuaternionValueSerializer.cs
- DetailsViewDeletedEventArgs.cs
- EdmComplexPropertyAttribute.cs
- ResolvePPIDRequest.cs
- TitleStyle.cs
- ObjectSet.cs
- TextRunProperties.cs
- OleDbErrorCollection.cs
- RoleGroupCollection.cs
- LinkConverter.cs
- KeyboardEventArgs.cs
- ProviderSettingsCollection.cs
- SmiSettersStream.cs
- WindowHideOrCloseTracker.cs
- ViewgenGatekeeper.cs
- MailHeaderInfo.cs
- ListItemConverter.cs
- LambdaCompiler.ControlFlow.cs
- DocumentCollection.cs
- CommandBinding.cs
- CodeSnippetExpression.cs
- ListControl.cs
- AnimationStorage.cs
- NavigatorInput.cs
- WebFaultClientMessageInspector.cs
- ContainsRowNumberChecker.cs
- UInt16Converter.cs
- TreeViewTemplateSelector.cs
- RedirectionProxy.cs
- CategoryGridEntry.cs
- TrustManagerMoreInformation.cs
- RuntimeConfig.cs
- SynchronizedInputHelper.cs
- _CookieModule.cs
- DateTimeFormatInfoScanner.cs
- ServiceProviders.cs
- CannotUnloadAppDomainException.cs
- MenuItemCollectionEditorDialog.cs
- PlatformNotSupportedException.cs
- FullTextLine.cs
- RegionInfo.cs
- WebPartHelpVerb.cs
- DirectoryObjectSecurity.cs
- DocumentCollection.cs
- UICuesEvent.cs
- OleAutBinder.cs
- CallbackValidator.cs
- HttpHandlersSection.cs
- DataException.cs
- ControlLocalizer.cs
- TextEditorParagraphs.cs
- PkcsUtils.cs
- ListBoxItemAutomationPeer.cs
- DataGridHeaderBorder.cs
- RightsManagementEncryptedStream.cs
- XomlCompilerResults.cs
- FixedPageStructure.cs
- DbMetaDataCollectionNames.cs
- HttpProxyTransportBindingElement.cs
- MSHTMLHost.cs
- ChannelDispatcherCollection.cs
- Authorization.cs
- ListViewSelectEventArgs.cs
- RepeatBehaviorConverter.cs
- WindowsTokenRoleProvider.cs
- HtmlWindow.cs
- SoapSchemaMember.cs
- ConfigXmlElement.cs
- SystemBrushes.cs
- ExpressionBuilderContext.cs
- DesignerOptionService.cs
- ResourcePool.cs
- PkcsUtils.cs
- ToolStripTextBox.cs
- InheritedPropertyDescriptor.cs
- translator.cs
- ToolBarTray.cs
- AssemblyCollection.cs
- uribuilder.cs
- Task.cs
- BuildResultCache.cs
- DataGridItem.cs
- BuildProviderAppliesToAttribute.cs
- SiteMapHierarchicalDataSourceView.cs
- SafeUserTokenHandle.cs
- ToolStripPanelRow.cs
- SQLByte.cs
- ISAPIRuntime.cs
- ConfigurationManagerInternalFactory.cs
- EditorPartChrome.cs
- DocumentGridContextMenu.cs
- ReadingWritingEntityEventArgs.cs
- DataDocumentXPathNavigator.cs
- TableItemStyle.cs
- CodeDirectoryCompiler.cs
- SettingsAttributeDictionary.cs
- Quaternion.cs
- SqlLiftWhereClauses.cs
- SiteMembershipCondition.cs