Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- ScriptResourceHandler.cs
- PassportAuthentication.cs
- sortedlist.cs
- LocalBuilder.cs
- RuntimeConfigLKG.cs
- ClientUIRequest.cs
- ScrollData.cs
- ToolStripDropDownClosingEventArgs.cs
- TextDecorationLocationValidation.cs
- HTTPAPI_VERSION.cs
- InvokeGenerator.cs
- NullableDecimalMinMaxAggregationOperator.cs
- ExpressionPrefixAttribute.cs
- StorageAssociationSetMapping.cs
- XmlSerializationGeneratedCode.cs
- EnumMemberAttribute.cs
- ModuleBuilder.cs
- XmlSchemas.cs
- Variable.cs
- Panel.cs
- Decimal.cs
- Journal.cs
- TypeListConverter.cs
- DrawingBrush.cs
- RoleManagerSection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- StorageMappingItemCollection.cs
- ContentFilePart.cs
- TrackingDataItemValue.cs
- TimelineClockCollection.cs
- ChooseAction.cs
- ClientApiGenerator.cs
- LayoutEditorPart.cs
- PipeConnection.cs
- RegisteredExpandoAttribute.cs
- SqlServices.cs
- FolderBrowserDialog.cs
- ModuleConfigurationInfo.cs
- PerformanceCounterNameAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- InternalCache.cs
- RuleEngine.cs
- SchemaSetCompiler.cs
- TimerEventSubscriptionCollection.cs
- XmlNode.cs
- HttpInputStream.cs
- CustomValidator.cs
- ImportException.cs
- UIInitializationException.cs
- QueryStringParameter.cs
- OperationFormatUse.cs
- bidPrivateBase.cs
- FontStyles.cs
- Exceptions.cs
- ITextView.cs
- ComponentResourceKeyConverter.cs
- TreeBuilderBamlTranslator.cs
- PartialClassGenerationTaskInternal.cs
- CalendarTable.cs
- LayoutEngine.cs
- NGCUIElementCollectionSerializerAsync.cs
- DiffuseMaterial.cs
- WindowsGrip.cs
- GZipStream.cs
- MessageFormatterConverter.cs
- securitycriticaldataClass.cs
- DataColumnMapping.cs
- SystemSounds.cs
- HttpResponse.cs
- ClientScriptManager.cs
- SecurityDescriptor.cs
- XmlNullResolver.cs
- DesignerTransaction.cs
- DispatchChannelSink.cs
- HTTPNotFoundHandler.cs
- EdmToObjectNamespaceMap.cs
- IsolationInterop.cs
- IndicFontClient.cs
- ObjectReferenceStack.cs
- EventLogEntry.cs
- UnsafeNativeMethods.cs
- VoiceInfo.cs
- UnknownBitmapDecoder.cs
- ColorEditor.cs
- ViewGenerator.cs
- SqlServices.cs
- HttpListenerResponse.cs
- QilLoop.cs
- WizardPanel.cs
- WebPartRestoreVerb.cs
- TransactionManager.cs
- DateTimeOffsetStorage.cs
- UniqueConstraint.cs
- JulianCalendar.cs
- FaultDescriptionCollection.cs
- GraphicsContainer.cs
- MethodBody.cs
- Enumerable.cs
- ReadOnlyCollection.cs
- WebConfigurationFileMap.cs