Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / 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 : [....] 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
- XmlElementAttribute.cs
- Resources.Designer.cs
- TreeViewCancelEvent.cs
- DelayedRegex.cs
- TextSelectionProcessor.cs
- XmlSchemaAttributeGroupRef.cs
- ChannelSettingsElement.cs
- ChangePasswordDesigner.cs
- PathGradientBrush.cs
- RubberbandSelector.cs
- SHA512.cs
- UIPropertyMetadata.cs
- Utils.cs
- EventHandlingScope.cs
- SystemUnicastIPAddressInformation.cs
- WinEventTracker.cs
- NativeWindow.cs
- NullableDoubleSumAggregationOperator.cs
- HtmlTitle.cs
- PersonalizationAdministration.cs
- StylusEditingBehavior.cs
- HttpResponseHeader.cs
- XmlCollation.cs
- InvalidWMPVersionException.cs
- OperationSelectorBehavior.cs
- SkipQueryOptionExpression.cs
- DataViewSettingCollection.cs
- CompositionTarget.cs
- FaultBookmark.cs
- _HeaderInfoTable.cs
- InvalidProgramException.cs
- NestedContainer.cs
- DataSourceXmlAttributeAttribute.cs
- DrawListViewItemEventArgs.cs
- Timer.cs
- DefaultPropertyAttribute.cs
- IERequestCache.cs
- TextControl.cs
- CopyNodeSetAction.cs
- ScrollPattern.cs
- CommonObjectSecurity.cs
- StylusTip.cs
- LineSegment.cs
- TextReader.cs
- RangeValuePatternIdentifiers.cs
- TransformerInfoCollection.cs
- LocatorGroup.cs
- ScriptingRoleServiceSection.cs
- WebPartCatalogCloseVerb.cs
- Number.cs
- HostedImpersonationContext.cs
- ResourcesChangeInfo.cs
- ToolStripItemRenderEventArgs.cs
- KeyValuePair.cs
- InvalidProgramException.cs
- HttpFileCollection.cs
- StylusShape.cs
- GetIndexBinder.cs
- TypeValidationEventArgs.cs
- Line.cs
- RenameRuleObjectDialog.cs
- XmlSchemaSimpleContentExtension.cs
- BrowsableAttribute.cs
- Vector3DIndependentAnimationStorage.cs
- PackWebRequestFactory.cs
- AttributeCollection.cs
- RadioButtonRenderer.cs
- ImageListUtils.cs
- ExpressionPrefixAttribute.cs
- AssemblyName.cs
- SortedDictionary.cs
- ProfileManager.cs
- NodeCounter.cs
- ListViewDataItem.cs
- DataGridViewLinkColumn.cs
- WebPartsSection.cs
- _AutoWebProxyScriptEngine.cs
- QueryCacheManager.cs
- ConfigXmlDocument.cs
- ModelPropertyDescriptor.cs
- BindingsCollection.cs
- CodeDOMProvider.cs
- Substitution.cs
- LiteralControl.cs
- SelectionEditor.cs
- FileClassifier.cs
- XmlSubtreeReader.cs
- InvalidWMPVersionException.cs
- WmpBitmapEncoder.cs
- ReferenceEqualityComparer.cs
- Solver.cs
- ConfigurationLoaderException.cs
- DatagridviewDisplayedBandsData.cs
- SoapTypeAttribute.cs
- BaseComponentEditor.cs
- FormViewUpdateEventArgs.cs
- InvocationExpression.cs
- EmptyEnumerator.cs
- WebPartCloseVerb.cs
- RC2.cs