Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / CalloutQueueItem.cs / 1305600 / 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
- NameTable.cs
- XmlAnyElementAttribute.cs
- InvalidFilterCriteriaException.cs
- PointHitTestResult.cs
- MessageBuilder.cs
- DataGridViewCell.cs
- FileLevelControlBuilderAttribute.cs
- LinearGradientBrush.cs
- ProcessModelInfo.cs
- ArgumentException.cs
- WebPartDeleteVerb.cs
- ConnectionConsumerAttribute.cs
- AnnotationHighlightLayer.cs
- SymbolUsageManager.cs
- HtmlLink.cs
- FieldToken.cs
- ColumnResizeAdorner.cs
- TransformerTypeCollection.cs
- _Win32.cs
- RefreshEventArgs.cs
- IPHostEntry.cs
- StateDesigner.LayoutSelectionGlyph.cs
- GridViewUpdateEventArgs.cs
- OracleConnectionString.cs
- MaskDescriptor.cs
- HeaderedItemsControl.cs
- EmbeddedMailObject.cs
- RtfNavigator.cs
- MetadataArtifactLoaderFile.cs
- XmlAttributeOverrides.cs
- TypeUtil.cs
- Converter.cs
- Function.cs
- CriticalHandle.cs
- BlurBitmapEffect.cs
- DataGridViewColumnCollectionEditor.cs
- WmlValidatorAdapter.cs
- UnescapedXmlDiagnosticData.cs
- SafeThemeHandle.cs
- UnmanagedMemoryStreamWrapper.cs
- TraceUtility.cs
- DateTimeFormatInfo.cs
- Gdiplus.cs
- CodeGenerator.cs
- UIElement3D.cs
- TextElement.cs
- HtmlPhoneCallAdapter.cs
- CodeLinePragma.cs
- XmlSchemaResource.cs
- AmbientLight.cs
- CheckBox.cs
- PrincipalPermission.cs
- TraceSwitch.cs
- ExitEventArgs.cs
- AtomParser.cs
- Select.cs
- ParenthesizePropertyNameAttribute.cs
- SimpleTextLine.cs
- ProcessModule.cs
- HtmlDocument.cs
- DbFunctionCommandTree.cs
- JoinGraph.cs
- CharacterString.cs
- HMAC.cs
- EntityParameterCollection.cs
- OneToOneMappingSerializer.cs
- TemplateInstanceAttribute.cs
- FeatureSupport.cs
- LinkTarget.cs
- HttpPostedFileWrapper.cs
- BooleanSwitch.cs
- SmtpNegotiateAuthenticationModule.cs
- ValidatorCollection.cs
- PartialTrustVisibleAssembly.cs
- MouseButtonEventArgs.cs
- EditorReuseAttribute.cs
- MeasureData.cs
- WindowsListViewGroup.cs
- CorrelationService.cs
- TextBoxBaseDesigner.cs
- BoundingRectTracker.cs
- PopupRoot.cs
- PartBasedPackageProperties.cs
- ModelPropertyCollectionImpl.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Vector3DCollectionConverter.cs
- Transform.cs
- CreateSequenceResponse.cs
- cookiecontainer.cs
- SupportsEventValidationAttribute.cs
- KeyNotFoundException.cs
- ObjectResult.cs
- UnsafeNetInfoNativeMethods.cs
- NativeActivityAbortContext.cs
- EntityDataSourceDesignerHelper.cs
- CLSCompliantAttribute.cs
- RulePatternOps.cs
- DriveNotFoundException.cs
- EventLogPermissionEntryCollection.cs
- ObjectAnimationBase.cs