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
- TextTreeTextElementNode.cs
- DataGridCellEditEndingEventArgs.cs
- UnknownWrapper.cs
- TemplatePropertyEntry.cs
- ListItemConverter.cs
- ConstraintCollection.cs
- Bidi.cs
- FilterUserControlBase.cs
- EventSinkHelperWriter.cs
- InvokeBase.cs
- TableCellAutomationPeer.cs
- CmsInterop.cs
- FormatSelectingMessageInspector.cs
- DocumentPageViewAutomationPeer.cs
- PrintingPermission.cs
- UIElement3D.cs
- SimpleApplicationHost.cs
- recordstate.cs
- HttpModuleActionCollection.cs
- CompositeFontParser.cs
- SerializationHelper.cs
- ManagedWndProcTracker.cs
- AnimationClock.cs
- CngKey.cs
- HttpRequest.cs
- PublishLicense.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- StdValidatorsAndConverters.cs
- SecureEnvironment.cs
- ProcessHost.cs
- SortedList.cs
- _TLSstream.cs
- ObjectIDGenerator.cs
- WorkflowViewManager.cs
- XamlTreeBuilderBamlRecordWriter.cs
- CodeRemoveEventStatement.cs
- BitStream.cs
- WindowsIPAddress.cs
- WebPartConnectionsConfigureVerb.cs
- sqlser.cs
- ComponentEditorPage.cs
- SID.cs
- DataPagerFieldCommandEventArgs.cs
- LayoutTableCell.cs
- ImageBrush.cs
- MediaContextNotificationWindow.cs
- CharacterMetrics.cs
- PassportIdentity.cs
- DataGridRelationshipRow.cs
- CompilationUtil.cs
- DeclarativeCatalogPart.cs
- DNS.cs
- VisualStateChangedEventArgs.cs
- BinaryObjectReader.cs
- SQLInt32Storage.cs
- PopOutPanel.cs
- XmlHierarchicalEnumerable.cs
- ConfigXmlDocument.cs
- VirtualizingStackPanel.cs
- EntityReference.cs
- TextRange.cs
- Overlapped.cs
- DataGridTableCollection.cs
- KeyValuePairs.cs
- _AutoWebProxyScriptEngine.cs
- CommonObjectSecurity.cs
- NodeFunctions.cs
- CacheMemory.cs
- LambdaCompiler.cs
- WebZone.cs
- BamlRecords.cs
- ThreadPool.cs
- WeakKeyDictionary.cs
- ModifyActivitiesPropertyDescriptor.cs
- AssemblyBuilder.cs
- UnaryNode.cs
- LockedHandleGlyph.cs
- PathFigure.cs
- SqlTypesSchemaImporter.cs
- Rect3DValueSerializer.cs
- WebBrowserUriTypeConverter.cs
- NetworkCredential.cs
- NumericExpr.cs
- EventLogInformation.cs
- CollectionBuilder.cs
- PropertyPushdownHelper.cs
- DataGridViewCellFormattingEventArgs.cs
- JsonEncodingStreamWrapper.cs
- NestPullup.cs
- safemediahandle.cs
- GroupLabel.cs
- XmlSchemaAnnotation.cs
- MsmqHostedTransportConfiguration.cs
- StickyNoteAnnotations.cs
- Focus.cs
- TagPrefixAttribute.cs
- HttpServerUtilityWrapper.cs
- ImageBrush.cs
- BufferModeSettings.cs
- DocumentViewerConstants.cs