Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / UIAutomation / 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 : 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
- ToolStripItem.cs
- BitVector32.cs
- XmlEncodedRawTextWriter.cs
- CacheHelper.cs
- APCustomTypeDescriptor.cs
- ScaleTransform3D.cs
- RotateTransform.cs
- CodeMethodInvokeExpression.cs
- CompositeCollection.cs
- ParallelRangeManager.cs
- TextOutput.cs
- SmiXetterAccessMap.cs
- ObjectListFieldsPage.cs
- OdbcInfoMessageEvent.cs
- SafeFileHandle.cs
- Win32.cs
- ClassGenerator.cs
- OdbcUtils.cs
- _SslStream.cs
- OciLobLocator.cs
- SafeNativeMethods.cs
- OuterGlowBitmapEffect.cs
- WithStatement.cs
- FontFamilyIdentifier.cs
- UrlSyndicationContent.cs
- HtmlCalendarAdapter.cs
- FactoryGenerator.cs
- PenThreadPool.cs
- AudioLevelUpdatedEventArgs.cs
- DataSourceComponent.cs
- TimerElapsedEvenArgs.cs
- SoapCommonClasses.cs
- EntityDesignerDataSourceView.cs
- RoutedEvent.cs
- WpfWebRequestHelper.cs
- ProviderException.cs
- SafeNativeMethods.cs
- Point3DAnimationBase.cs
- IisTraceWebEventProvider.cs
- SqlUserDefinedTypeAttribute.cs
- XhtmlBasicFormAdapter.cs
- _LocalDataStore.cs
- SyndicationDeserializer.cs
- HttpApplicationFactory.cs
- DetailsViewModeEventArgs.cs
- BackgroundFormatInfo.cs
- URLString.cs
- HttpVersion.cs
- ReflectionTypeLoadException.cs
- ContainerActivationHelper.cs
- RuleValidation.cs
- NetworkCredential.cs
- CheckBoxAutomationPeer.cs
- BlockingCollection.cs
- DataRelation.cs
- RegexReplacement.cs
- XmlSchemaObject.cs
- ExpressionEditorAttribute.cs
- BrushMappingModeValidation.cs
- Decimal.cs
- MouseGesture.cs
- WebPartDeleteVerb.cs
- UTF7Encoding.cs
- PriorityChain.cs
- SqlCacheDependencyDatabase.cs
- ToggleProviderWrapper.cs
- FixedSOMContainer.cs
- BamlLocalizableResource.cs
- ValidationErrorEventArgs.cs
- ResourceBinder.cs
- SqlEnums.cs
- EventHandlingScope.cs
- CardSpacePolicyElement.cs
- ExceptionList.cs
- ContextMenuService.cs
- ArrangedElement.cs
- WebServiceEnumData.cs
- HealthMonitoringSection.cs
- ClientScriptItemCollection.cs
- relpropertyhelper.cs
- CompiledRegexRunnerFactory.cs
- IdleTimeoutMonitor.cs
- BitmapFrameEncode.cs
- SqlMethodAttribute.cs
- FunctionQuery.cs
- EFDataModelProvider.cs
- HttpDigestClientCredential.cs
- ClientEndpointLoader.cs
- Propagator.Evaluator.cs
- ServiceBusyException.cs
- ToolStripItemTextRenderEventArgs.cs
- User.cs
- PingOptions.cs
- XmlSerializerFactory.cs
- TablePatternIdentifiers.cs
- Expression.cs
- ErrorHandler.cs
- PropertyBuilder.cs
- ViewGenResults.cs
- SByteConverter.cs