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 / 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
- UrlMappingsModule.cs
- XamlParser.cs
- PropertyDescriptorComparer.cs
- InvalidOperationException.cs
- InplaceBitmapMetadataWriter.cs
- JournalEntry.cs
- CompositionDesigner.cs
- StateDesigner.cs
- MetadataArtifactLoader.cs
- EventItfInfo.cs
- TrackingParameters.cs
- FileEnumerator.cs
- ServiceHostingEnvironment.cs
- ResponseBodyWriter.cs
- GridEntryCollection.cs
- AsyncResult.cs
- DataList.cs
- SystemColors.cs
- HtmlControlPersistable.cs
- VideoDrawing.cs
- RoleGroup.cs
- ContentTypeSettingClientMessageFormatter.cs
- Viewport2DVisual3D.cs
- UniqueConstraint.cs
- FieldAccessException.cs
- PerfCounters.cs
- _NetRes.cs
- RectKeyFrameCollection.cs
- RootBuilder.cs
- Dispatcher.cs
- DropShadowEffect.cs
- DBConcurrencyException.cs
- _emptywebproxy.cs
- SignatureHelper.cs
- BridgeDataReader.cs
- PointConverter.cs
- PTManager.cs
- MappingSource.cs
- Model3DGroup.cs
- ConfigurationManagerInternal.cs
- DataObjectMethodAttribute.cs
- MetadataCollection.cs
- QuaternionKeyFrameCollection.cs
- NativeMethods.cs
- HandlerBase.cs
- ClientUtils.cs
- WebBrowserNavigatingEventHandler.cs
- ToolZone.cs
- HttpConfigurationContext.cs
- WebBrowser.cs
- ImageConverter.cs
- TraversalRequest.cs
- SafeBuffer.cs
- SrgsNameValueTag.cs
- SerializableAttribute.cs
- WebPartAuthorizationEventArgs.cs
- Int32KeyFrameCollection.cs
- BindingList.cs
- Unit.cs
- ShapeTypeface.cs
- ErrorWrapper.cs
- TaskExceptionHolder.cs
- ProjectionCamera.cs
- EffectiveValueEntry.cs
- Int16Storage.cs
- AmbientProperties.cs
- ServiceOperation.cs
- SafeSecurityHelper.cs
- Win32Native.cs
- HtmlProps.cs
- TextTreeInsertUndoUnit.cs
- NativeCppClassAttribute.cs
- WindowsStreamSecurityUpgradeProvider.cs
- FileChangesMonitor.cs
- OleDbReferenceCollection.cs
- Point.cs
- EncryptedPackage.cs
- Pair.cs
- CacheDict.cs
- Bezier.cs
- _LocalDataStore.cs
- MetadataUtilsSmi.cs
- PackageDigitalSignature.cs
- DefaultPrintController.cs
- _ScatterGatherBuffers.cs
- Error.cs
- OperationBehaviorAttribute.cs
- StreamGeometry.cs
- IndexedSelectQueryOperator.cs
- XmlHierarchicalDataSourceView.cs
- EventHandlersStore.cs
- SHA512Managed.cs
- DecoderReplacementFallback.cs
- DomNameTable.cs
- BufferedGraphicsContext.cs
- EditorPartChrome.cs
- SiteMapSection.cs
- XmlValidatingReader.cs
- DataGridViewCellValidatingEventArgs.cs
- FormsAuthenticationCredentials.cs