Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeVariableDeclarationStatement.cs
- arc.cs
- ProgressBarRenderer.cs
- ContainerVisual.cs
- XmlSchemaAttributeGroupRef.cs
- DataControlFieldCollection.cs
- AffineTransform3D.cs
- TypeExtensionConverter.cs
- TreeNodeStyleCollectionEditor.cs
- OleAutBinder.cs
- XappLauncher.cs
- CodeBinaryOperatorExpression.cs
- HtmlTable.cs
- ListDataBindEventArgs.cs
- EDesignUtil.cs
- XmlValidatingReader.cs
- AssemblyCollection.cs
- Range.cs
- XmlDeclaration.cs
- EncodingDataItem.cs
- PerformanceCounter.cs
- TraceLog.cs
- ParentUndoUnit.cs
- GridItemProviderWrapper.cs
- InvokeGenerator.cs
- LookupNode.cs
- RunWorkerCompletedEventArgs.cs
- EncryptedPackageFilter.cs
- EditorAttributeInfo.cs
- EditorPart.cs
- EntityExpressionVisitor.cs
- MediaSystem.cs
- SafeSecurityHandles.cs
- baseaxisquery.cs
- AllMembershipCondition.cs
- SortAction.cs
- FamilyTypefaceCollection.cs
- JsonObjectDataContract.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- TrackingProfileCache.cs
- initElementDictionary.cs
- QueryPageSettingsEventArgs.cs
- LambdaSerializationException.cs
- ValueTypeFixupInfo.cs
- EntityViewGenerationAttribute.cs
- CustomPopupPlacement.cs
- MessageSmuggler.cs
- XmlLinkedNode.cs
- PropertyIDSet.cs
- Matrix3D.cs
- PixelShader.cs
- unitconverter.cs
- OperatingSystemVersionCheck.cs
- DocumentScope.cs
- ValidationEventArgs.cs
- DirectoryInfo.cs
- SessionStateUtil.cs
- DataControlFieldTypeEditor.cs
- TextEditorDragDrop.cs
- DocumentApplication.cs
- ListItemParagraph.cs
- GridViewRowCollection.cs
- WindowsUpDown.cs
- formatstringdialog.cs
- TableSectionStyle.cs
- ServiceNotStartedException.cs
- BaseCodeDomTreeGenerator.cs
- Resources.Designer.cs
- WindowsBrush.cs
- GridView.cs
- NetworkInformationException.cs
- ResourcesBuildProvider.cs
- SingleObjectCollection.cs
- Menu.cs
- FixedBufferAttribute.cs
- BreakRecordTable.cs
- ConfigurationStrings.cs
- XPathArrayIterator.cs
- DataGridViewCheckBoxCell.cs
- DesignBindingValueUIHandler.cs
- FileClassifier.cs
- EntityPropertyMappingAttribute.cs
- SqlCommand.cs
- SystemFonts.cs
- ModelFunctionTypeElement.cs
- IsolatedStorageFile.cs
- ToolStripOverflowButton.cs
- DelegateOutArgument.cs
- PasswordTextContainer.cs
- InfoCardSchemas.cs
- SqlCommandSet.cs
- IUnknownConstantAttribute.cs
- PropertyInformation.cs
- OrderByBuilder.cs
- QilScopedVisitor.cs
- ListBox.cs
- _SslStream.cs
- CollectionEditVerbManager.cs
- XPathDocumentNavigator.cs
- Validator.cs