Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / CalloutQueueItem.cs / 1 / CalloutQueueItem.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 callbacks that came from the PAW server. Used by // ClientEventManager in its event handler that recieves events from the server. // These events are queued in order to get them off the servers UI thread. internal class CalloutQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal CalloutQueueItem(Delegate clientCallback, UiaCoreApi.UiaCacheResponse cacheResponse, AutomationEventArgs e, UiaCoreApi.UiaCacheRequest cacheRequest) { _clientCallback = clientCallback; _cacheResponse = cacheResponse; _e = e; _cacheRequest = cacheRequest; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal override void Process() { AutomationElement el = CacheHelper.BuildAutomationElementsFromResponse(_cacheRequest, _cacheResponse); InvokeHandlers.InvokeClientHandler(_clientCallback, el, _e); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields internal Delegate _clientCallback; // the client's callback delegate internal UiaCoreApi.UiaCacheResponse _cacheResponse; // prefetched data (possibly including the element and properties/patterns) internal UiaCoreApi.UiaCacheRequest _cacheRequest; // list of items to prefetch (also used when deserializing prefetched data) internal 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 callbacks that came from the PAW server. Used by // ClientEventManager in its event handler that recieves events from the server. // These events are queued in order to get them off the servers UI thread. internal class CalloutQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal CalloutQueueItem(Delegate clientCallback, UiaCoreApi.UiaCacheResponse cacheResponse, AutomationEventArgs e, UiaCoreApi.UiaCacheRequest cacheRequest) { _clientCallback = clientCallback; _cacheResponse = cacheResponse; _e = e; _cacheRequest = cacheRequest; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal override void Process() { AutomationElement el = CacheHelper.BuildAutomationElementsFromResponse(_cacheRequest, _cacheResponse); InvokeHandlers.InvokeClientHandler(_clientCallback, el, _e); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields internal Delegate _clientCallback; // the client's callback delegate internal UiaCoreApi.UiaCacheResponse _cacheResponse; // prefetched data (possibly including the element and properties/patterns) internal UiaCoreApi.UiaCacheRequest _cacheRequest; // list of items to prefetch (also used when deserializing prefetched data) internal 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
- DataIdProcessor.cs
- MSAAEventDispatcher.cs
- XPathDescendantIterator.cs
- StaticSiteMapProvider.cs
- BoundingRectTracker.cs
- SmtpException.cs
- FlowDocument.cs
- TextBoxLine.cs
- PriorityQueue.cs
- LinqDataSourceDisposeEventArgs.cs
- XmlDocumentSchema.cs
- TypeCodeDomSerializer.cs
- XmlNodeWriter.cs
- FileDialogCustomPlace.cs
- ProfilePropertyNameValidator.cs
- ExpandCollapseProviderWrapper.cs
- SerializationHelper.cs
- XmlSubtreeReader.cs
- SiteMapProvider.cs
- ListViewItemMouseHoverEvent.cs
- TabletDevice.cs
- DataGrid.cs
- ProxyWebPartConnectionCollection.cs
- AddInBase.cs
- ExpandCollapseProviderWrapper.cs
- mansign.cs
- KeyedHashAlgorithm.cs
- MarkupCompilePass2.cs
- PostBackOptions.cs
- OverflowException.cs
- SubMenuStyle.cs
- XmlSchemaAnnotated.cs
- Errors.cs
- MouseButtonEventArgs.cs
- NullableConverter.cs
- DirectoryObjectSecurity.cs
- XmlPreloadedResolver.cs
- ComplexBindingPropertiesAttribute.cs
- SqlStream.cs
- IRCollection.cs
- MDIWindowDialog.cs
- ProfileSettingsCollection.cs
- TransformDescriptor.cs
- ModulesEntry.cs
- HwndTarget.cs
- ADConnectionHelper.cs
- OdbcFactory.cs
- DetailsViewInsertEventArgs.cs
- OutputCacheSettingsSection.cs
- BindToObject.cs
- DataServiceOperationContext.cs
- SafeUserTokenHandle.cs
- RecordConverter.cs
- TextTreeObjectNode.cs
- BooleanConverter.cs
- SqlNode.cs
- ResourceType.cs
- AdjustableArrowCap.cs
- DataGridTextBox.cs
- StringExpressionSet.cs
- StringAnimationUsingKeyFrames.cs
- Pool.cs
- ELinqQueryState.cs
- DbProviderFactory.cs
- DataGridTable.cs
- StringInfo.cs
- AsyncPostBackErrorEventArgs.cs
- UnhandledExceptionEventArgs.cs
- Screen.cs
- WorkItem.cs
- XMLUtil.cs
- Hex.cs
- QueryableDataSource.cs
- DataServiceResponse.cs
- TimeSpanStorage.cs
- InkCanvasSelection.cs
- CodeDirectionExpression.cs
- RegexNode.cs
- IconEditor.cs
- DataMemberFieldConverter.cs
- SwitchLevelAttribute.cs
- xmlsaver.cs
- RequestCachePolicyConverter.cs
- SignedPkcs7.cs
- EdmToObjectNamespaceMap.cs
- DynamicDataExtensions.cs
- ThrowHelper.cs
- DeploymentSection.cs
- SectionInformation.cs
- ListViewInsertionMark.cs
- SqlEnums.cs
- TokenBasedSetEnumerator.cs
- Int64Animation.cs
- CalendarItem.cs
- UriSectionData.cs
- PaperSize.cs
- RoleServiceManager.cs
- PasswordDeriveBytes.cs
- SafeFileHandle.cs
- SplitterEvent.cs