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
- TableChangeProcessor.cs
- PersonalizationStateInfo.cs
- OverflowException.cs
- EncryptedPackage.cs
- ProtocolsConfigurationHandler.cs
- BindingRestrictions.cs
- StringAttributeCollection.cs
- TextBox.cs
- RowUpdatingEventArgs.cs
- HuffmanTree.cs
- LineServicesCallbacks.cs
- SimpleHandlerFactory.cs
- HyperLinkField.cs
- ListViewInsertionMark.cs
- RawMouseInputReport.cs
- ThicknessAnimationBase.cs
- _IPv6Address.cs
- MD5HashHelper.cs
- BaseServiceProvider.cs
- StyleBamlTreeBuilder.cs
- KeyboardNavigation.cs
- OracleException.cs
- XmlArrayAttribute.cs
- LoadedEvent.cs
- DebuggerAttributes.cs
- assemblycache.cs
- Convert.cs
- HttpCookie.cs
- AsymmetricSignatureDeformatter.cs
- Page.cs
- TextBox.cs
- MultiTrigger.cs
- ContentAlignmentEditor.cs
- RenderDataDrawingContext.cs
- PolyBezierSegment.cs
- LinearGradientBrush.cs
- DataGridViewColumn.cs
- MemberRelationshipService.cs
- CustomWebEventKey.cs
- NavigationPropertySingletonExpression.cs
- PatternMatcher.cs
- DBSqlParserTable.cs
- BinaryObjectWriter.cs
- FontWeightConverter.cs
- BufferBuilder.cs
- GroupBox.cs
- IfJoinedCondition.cs
- RawUIStateInputReport.cs
- DataReaderContainer.cs
- WorkflowQueueInfo.cs
- HWStack.cs
- RawStylusInputCustomDataList.cs
- Monitor.cs
- Vars.cs
- PersonalizationStateQuery.cs
- TextAutomationPeer.cs
- FileIOPermission.cs
- LoginCancelEventArgs.cs
- DbConnectionFactory.cs
- DocumentGrid.cs
- Transactions.cs
- TaskFactory.cs
- FactoryGenerator.cs
- XMLSchema.cs
- DesignerVerbCollection.cs
- XmlHierarchicalEnumerable.cs
- AnnotationService.cs
- ContentValidator.cs
- NamedElement.cs
- GridViewPageEventArgs.cs
- ListViewTableRow.cs
- UserPreferenceChangingEventArgs.cs
- DBCommandBuilder.cs
- UnknownBitmapEncoder.cs
- TypeGeneratedEventArgs.cs
- XmlAggregates.cs
- BooleanAnimationBase.cs
- XmlCollation.cs
- ExceptionWrapper.cs
- MemoryFailPoint.cs
- BrowserCapabilitiesFactoryBase.cs
- ValueUtilsSmi.cs
- RequestCacheEntry.cs
- ExpressionBindingCollection.cs
- ClientData.cs
- SystemIPGlobalProperties.cs
- XmlDocumentFragment.cs
- SpeechDetectedEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- ConnectionStringSettingsCollection.cs
- SelectionPatternIdentifiers.cs
- regiisutil.cs
- WindowsListViewItemCheckBox.cs
- WebSysDisplayNameAttribute.cs
- XmlSchemaSimpleType.cs
- CollectionView.cs
- InstanceNameConverter.cs
- HierarchicalDataBoundControlAdapter.cs
- EncoderParameters.cs
- PlanCompilerUtil.cs