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
- EdgeModeValidation.cs
- PngBitmapEncoder.cs
- MenuItemStyleCollection.cs
- LayoutTable.cs
- VersionedStreamOwner.cs
- MatchingStyle.cs
- Span.cs
- DataRowView.cs
- WCFModelStrings.Designer.cs
- TemplateBindingExpression.cs
- System.Data_BID.cs
- DiscoveryRequestHandler.cs
- TableParagraph.cs
- DomNameTable.cs
- ApplicationId.cs
- Int16Animation.cs
- XsltLoader.cs
- datacache.cs
- TransformerTypeCollection.cs
- CookieProtection.cs
- GetImportedCardRequest.cs
- updatecommandorderer.cs
- ExtensibleClassFactory.cs
- SiteMapNodeCollection.cs
- IdleTimeoutMonitor.cs
- MembershipValidatePasswordEventArgs.cs
- QueryStringParameter.cs
- odbcmetadatafactory.cs
- DataGridParentRows.cs
- SmtpClient.cs
- GridViewActionList.cs
- ImageSourceConverter.cs
- RandomNumberGenerator.cs
- ApplicationSecurityManager.cs
- CustomAttributeBuilder.cs
- TemplateLookupAction.cs
- MexHttpsBindingCollectionElement.cs
- UiaCoreApi.cs
- GridViewEditEventArgs.cs
- ListParagraph.cs
- NumericExpr.cs
- BamlBinaryWriter.cs
- LineSegment.cs
- ReturnType.cs
- ColumnResizeUndoUnit.cs
- ListParagraph.cs
- WeakReferenceList.cs
- SeekStoryboard.cs
- RuntimeArgumentHandle.cs
- CFStream.cs
- WebPartTransformerCollection.cs
- XmlElementAttribute.cs
- LogFlushAsyncResult.cs
- AttachedPropertyBrowsableAttribute.cs
- InstanceCompleteException.cs
- FormViewPagerRow.cs
- InteropBitmapSource.cs
- RTLAwareMessageBox.cs
- SqlGenericUtil.cs
- TypeConvertions.cs
- HandledEventArgs.cs
- FirstMatchCodeGroup.cs
- XsltFunctions.cs
- wgx_commands.cs
- DataObjectFieldAttribute.cs
- GridItemCollection.cs
- TextElementEnumerator.cs
- ResetableIterator.cs
- RegexBoyerMoore.cs
- ScrollData.cs
- QueryOperationResponseOfT.cs
- RegexInterpreter.cs
- IDReferencePropertyAttribute.cs
- VirtualizingPanel.cs
- WsdlContractConversionContext.cs
- DbProviderServices.cs
- DragEvent.cs
- StickyNoteContentControl.cs
- PEFileReader.cs
- CodeExpressionCollection.cs
- RayHitTestParameters.cs
- ParseHttpDate.cs
- Profiler.cs
- ObjectQueryState.cs
- TextEditorTyping.cs
- ComponentCommands.cs
- HtmlInputSubmit.cs
- ControlBindingsCollection.cs
- Double.cs
- XmlSerializableWriter.cs
- LineGeometry.cs
- ScriptReference.cs
- Panel.cs
- ThemeDictionaryExtension.cs
- TableAdapterManagerNameHandler.cs
- DataControlImageButton.cs
- SafeNativeMethods.cs
- NameTable.cs
- WmlLiteralTextAdapter.cs
- DbDeleteCommandTree.cs