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
- ListView.cs
- DesignerProperties.cs
- GenericPrincipal.cs
- ClonableStack.cs
- CssClassPropertyAttribute.cs
- SQLBoolean.cs
- TraceListeners.cs
- ADMembershipUser.cs
- PersonalizationAdministration.cs
- WebPartMenuStyle.cs
- HttpFileCollectionBase.cs
- ValuePattern.cs
- CqlQuery.cs
- ConfigurationStrings.cs
- UrlMappingCollection.cs
- DotExpr.cs
- RsaKeyIdentifierClause.cs
- SqlNotificationRequest.cs
- Condition.cs
- SemanticAnalyzer.cs
- ViewCellSlot.cs
- AsyncStreamReader.cs
- CallbackDebugBehavior.cs
- SimpleRecyclingCache.cs
- RepeaterDataBoundAdapter.cs
- HandlerFactoryWrapper.cs
- DataControlPagerLinkButton.cs
- HttpWebResponse.cs
- XpsDocument.cs
- EditorZone.cs
- VisualTreeFlattener.cs
- ValidatorUtils.cs
- BinaryUtilClasses.cs
- HMACSHA1.cs
- BinaryCommonClasses.cs
- Utils.cs
- ListViewSelectEventArgs.cs
- RegexRunnerFactory.cs
- InvalidProgramException.cs
- KeyValueConfigurationCollection.cs
- WmlValidationSummaryAdapter.cs
- ListParaClient.cs
- CapabilitiesUse.cs
- Range.cs
- _CacheStreams.cs
- AuthenticationConfig.cs
- ResourceKey.cs
- XsltQilFactory.cs
- XmlElement.cs
- autovalidator.cs
- PageThemeParser.cs
- TextTreeFixupNode.cs
- ProcessThreadCollection.cs
- QuadraticBezierSegment.cs
- ClientSponsor.cs
- XmlChoiceIdentifierAttribute.cs
- ItemContainerProviderWrapper.cs
- Polyline.cs
- RegexCompilationInfo.cs
- ProofTokenCryptoHandle.cs
- InstanceStore.cs
- DataBindEngine.cs
- BamlRecords.cs
- BaseHashHelper.cs
- ObservableCollection.cs
- IpcChannel.cs
- InputEventArgs.cs
- EncodingInfo.cs
- CursorConverter.cs
- DataGridTableStyleMappingNameEditor.cs
- XPathEmptyIterator.cs
- DbDataAdapter.cs
- FontFamilyIdentifier.cs
- ContentValidator.cs
- DeviceContext.cs
- PolygonHotSpot.cs
- XPathSingletonIterator.cs
- TreeNodeCollection.cs
- DesignerActionItemCollection.cs
- ErrorTableItemStyle.cs
- Missing.cs
- DebugInfoExpression.cs
- TargetPerspective.cs
- ProgressiveCrcCalculatingStream.cs
- GeneralTransform3DGroup.cs
- ControlEvent.cs
- HttpSysSettings.cs
- EntityContainerEmitter.cs
- NullReferenceException.cs
- XmlDataSourceView.cs
- TransactionScope.cs
- InternalBase.cs
- ConsoleTraceListener.cs
- AutomationIdentifierGuids.cs
- TextTrailingWordEllipsis.cs
- DataListItemCollection.cs
- GeometryHitTestParameters.cs
- CodeArgumentReferenceExpression.cs
- PassportPrincipal.cs
- FamilyMap.cs