Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / ClientSideQueueItem.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataServiceHostFactory.cs
- HtmlTernaryTree.cs
- LateBoundBitmapDecoder.cs
- DataGridColumnReorderingEventArgs.cs
- RegisteredExpandoAttribute.cs
- TraceSource.cs
- PaginationProgressEventArgs.cs
- NullableLongAverageAggregationOperator.cs
- ContractHandle.cs
- ServiceOperation.cs
- IPAddressCollection.cs
- SimpleFileLog.cs
- WindowsListViewItemCheckBox.cs
- FlowDocumentPaginator.cs
- ProcessModule.cs
- ObjectQuery_EntitySqlExtensions.cs
- EventHandlersDesigner.cs
- linebase.cs
- SqlDependencyUtils.cs
- ColumnWidthChangingEvent.cs
- TypeForwardedToAttribute.cs
- TableProviderWrapper.cs
- WaitHandle.cs
- DiscoveryDocumentSearchPattern.cs
- Item.cs
- NextPreviousPagerField.cs
- InvalidDataException.cs
- LocalizedNameDescriptionPair.cs
- SpellerStatusTable.cs
- ExpressionConverter.cs
- Geometry.cs
- TemplateComponentConnector.cs
- MethodCallConverter.cs
- TextComposition.cs
- ActivityStatusChangeEventArgs.cs
- WebScriptEnablingElement.cs
- PublisherIdentityPermission.cs
- TTSEvent.cs
- PathTooLongException.cs
- InkCanvasSelection.cs
- HMACSHA384.cs
- FillRuleValidation.cs
- FixedPageStructure.cs
- KnownTypeAttribute.cs
- CompoundFileIOPermission.cs
- dtdvalidator.cs
- PropertyGridEditorPart.cs
- EmbeddedMailObjectsCollection.cs
- ISCIIEncoding.cs
- WebPartConnection.cs
- DBAsyncResult.cs
- WebPartManager.cs
- messageonlyhwndwrapper.cs
- IsolatedStorageException.cs
- StructuralCache.cs
- ComplexPropertyEntry.cs
- SortQuery.cs
- AnnotationObservableCollection.cs
- DateTimeFormatInfoScanner.cs
- SerializationAttributes.cs
- UseAttributeSetsAction.cs
- HostedElements.cs
- TdsParserStateObject.cs
- RuntimeConfigLKG.cs
- Compiler.cs
- Brush.cs
- BamlBinaryWriter.cs
- ErrorTableItemStyle.cs
- Stack.cs
- ConstructorBuilder.cs
- FamilyTypeface.cs
- iisPickupDirectory.cs
- DataGridViewCellStyleConverter.cs
- ImageAutomationPeer.cs
- TextFormatter.cs
- Sql8ExpressionRewriter.cs
- UnsafeNativeMethods.cs
- Vector3DAnimationUsingKeyFrames.cs
- DataRowCollection.cs
- InvokerUtil.cs
- CodeExpressionCollection.cs
- UIElementAutomationPeer.cs
- CodeNamespaceImport.cs
- BStrWrapper.cs
- DataShape.cs
- ToolboxCategory.cs
- RequestUriProcessor.cs
- AutomationPattern.cs
- Freezable.cs
- RemoteWebConfigurationHost.cs
- InputEventArgs.cs
- MenuItem.cs
- FixedSOMContainer.cs
- ContentPresenter.cs
- MSAAWinEventWrap.cs
- ContextProperty.cs
- ViewManager.cs
- WebPartAddingEventArgs.cs
- MLangCodePageEncoding.cs
- DesignerVerb.cs