Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SelectionHighlightInfo.cs
- RegexFCD.cs
- _NetworkingPerfCounters.cs
- AnnotationMap.cs
- BufferedReadStream.cs
- ClientConfigurationHost.cs
- XPathSelfQuery.cs
- Pair.cs
- FlowLayout.cs
- AssociatedControlConverter.cs
- Misc.cs
- CircleHotSpot.cs
- GridViewAutomationPeer.cs
- StorageInfo.cs
- JsonFormatReaderGenerator.cs
- CustomError.cs
- VSDExceptions.cs
- ListBoxDesigner.cs
- XmlNamedNodeMap.cs
- AutoCompleteStringCollection.cs
- FontDialog.cs
- DataTemplate.cs
- RuntimeConfig.cs
- CreatingCookieEventArgs.cs
- StringAnimationBase.cs
- HandlerBase.cs
- GreenMethods.cs
- TextLineResult.cs
- PolyQuadraticBezierSegment.cs
- ThaiBuddhistCalendar.cs
- DesignBindingEditor.cs
- DoubleLinkListEnumerator.cs
- Stroke.cs
- __TransparentProxy.cs
- TypeBuilder.cs
- TabRenderer.cs
- ImpersonationContext.cs
- ComponentResourceKey.cs
- LinqDataSourceSelectEventArgs.cs
- SchemaHelper.cs
- StreamInfo.cs
- CircleHotSpot.cs
- AccessControlList.cs
- SchemaNamespaceManager.cs
- ArraySet.cs
- ActiveXSite.cs
- PointAnimationBase.cs
- ServiceParser.cs
- Literal.cs
- ListDictionaryInternal.cs
- Int32.cs
- SqlDataReader.cs
- Vars.cs
- XmlTextEncoder.cs
- Transform3D.cs
- ItemsControlAutomationPeer.cs
- isolationinterop.cs
- WebPartConnectVerb.cs
- PrintDialogException.cs
- BaseAddressPrefixFilterElementCollection.cs
- TreeNodeBinding.cs
- IPCCacheManager.cs
- EntitySetDataBindingList.cs
- SmtpNetworkElement.cs
- CodeArgumentReferenceExpression.cs
- WeakKeyDictionary.cs
- LeafCellTreeNode.cs
- CalendarDataBindingHandler.cs
- RepeatBehaviorConverter.cs
- ErrorWrapper.cs
- RelationalExpressions.cs
- HttpCachePolicyElement.cs
- HttpCachePolicyBase.cs
- SQlBooleanStorage.cs
- MappingItemCollection.cs
- DateTimeFormatInfo.cs
- Run.cs
- Match.cs
- DocumentPropertiesDialog.cs
- GcHandle.cs
- LogSwitch.cs
- XmlElementCollection.cs
- OutputCacheModule.cs
- RequestCacheValidator.cs
- SqlFunctionAttribute.cs
- EncodingStreamWrapper.cs
- HttpCacheVary.cs
- TextFindEngine.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ExpressionDumper.cs
- DoubleConverter.cs
- BoundPropertyEntry.cs
- RequestStatusBarUpdateEventArgs.cs
- SrgsDocument.cs
- FederatedMessageSecurityOverHttp.cs
- TreeNodeCollection.cs
- CodeGroup.cs
- SQLInt16Storage.cs
- StringResourceManager.cs
- StringArrayEditor.cs