Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / ClientSideQueueItem.cs / 1 / ClientSideQueueItem.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 events that originated on the client side (e.g. // used by focus and top-level window tracking to queue WinEvent information). internal class ClientSideQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) { _clientCallback = clientCallback; _srcEl = srcEl; _request = request; _e = e; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal override void Process() { // Grab properties for cache request here... AutomationElement src; if (_srcEl == null) { src = null; } else { UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_srcEl.RawNode, _request, UiaCoreApi.NormalizeState.View, null); src = CacheHelper.BuildAutomationElementsFromResponse(_request, response); } // if (!(src == null && _e.EventId == AutomationElement.AutomationFocusChangedEvent)) InvokeHandlers.InvokeClientHandler(_clientCallback, src, _e); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private Delegate _clientCallback; // a client callback delegate private AutomationElement _srcEl; // the source element private UiaCoreApi.UiaCacheRequest _request; // shopping list for prefetch private 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 events that originated on the client side (e.g. // used by focus and top-level window tracking to queue WinEvent information). internal class ClientSideQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) { _clientCallback = clientCallback; _srcEl = srcEl; _request = request; _e = e; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal override void Process() { // Grab properties for cache request here... AutomationElement src; if (_srcEl == null) { src = null; } else { UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_srcEl.RawNode, _request, UiaCoreApi.NormalizeState.View, null); src = CacheHelper.BuildAutomationElementsFromResponse(_request, response); } // if (!(src == null && _e.EventId == AutomationElement.AutomationFocusChangedEvent)) InvokeHandlers.InvokeClientHandler(_clientCallback, src, _e); } #endregion Internal Methods //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private Delegate _clientCallback; // a client callback delegate private AutomationElement _srcEl; // the source element private UiaCoreApi.UiaCacheRequest _request; // shopping list for prefetch private 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
- HttpModuleAction.cs
- StyleSelector.cs
- Resources.Designer.cs
- AutomationPatternInfo.cs
- Separator.cs
- TextProviderWrapper.cs
- SchemaImporterExtensionsSection.cs
- BoundField.cs
- OutOfMemoryException.cs
- BinaryMethodMessage.cs
- ValidatedControlConverter.cs
- CodeNamespace.cs
- GlobalizationSection.cs
- ILGen.cs
- OdbcPermission.cs
- ZipIOLocalFileBlock.cs
- MasterPage.cs
- HttpModuleActionCollection.cs
- EmbeddedObject.cs
- DataBindingHandlerAttribute.cs
- ParserContext.cs
- IteratorDescriptor.cs
- LinkedResource.cs
- SizeConverter.cs
- OleServicesContext.cs
- HostedElements.cs
- GeneralTransform.cs
- Constants.cs
- BamlRecords.cs
- ResourceContainerWrapper.cs
- MetadataLocation.cs
- SQLSingle.cs
- MessageQueueEnumerator.cs
- ObjectQueryState.cs
- GPPOINT.cs
- PagerSettings.cs
- SortableBindingList.cs
- FastPropertyAccessor.cs
- ReadOnlyTernaryTree.cs
- Size.cs
- ControlBindingsCollection.cs
- ThicknessAnimation.cs
- LayoutDump.cs
- AutomationEvent.cs
- Overlapped.cs
- Timeline.cs
- Margins.cs
- InputGestureCollection.cs
- PriorityQueue.cs
- ContentPlaceHolderDesigner.cs
- DBAsyncResult.cs
- Image.cs
- LayoutTableCell.cs
- XmlTextReaderImplHelpers.cs
- ObjectHelper.cs
- HandleCollector.cs
- Helpers.cs
- IdentitySection.cs
- COAUTHINFO.cs
- TrustLevelCollection.cs
- AppearanceEditorPart.cs
- CollectionBuilder.cs
- DetailsViewDeleteEventArgs.cs
- DoubleCollection.cs
- GridViewAutomationPeer.cs
- HttpWebResponse.cs
- QilVisitor.cs
- AvTraceDetails.cs
- SecurityIdentifierElementCollection.cs
- TdsParserSafeHandles.cs
- SpecularMaterial.cs
- RuntimeWrappedException.cs
- hwndwrapper.cs
- MaterialGroup.cs
- AlgoModule.cs
- FileDialog_Vista_Interop.cs
- XmlSchemaParticle.cs
- NameValueSectionHandler.cs
- DataGridTableCollection.cs
- LogArchiveSnapshot.cs
- VectorAnimationUsingKeyFrames.cs
- CodeFieldReferenceExpression.cs
- ToolStripLocationCancelEventArgs.cs
- EntitySqlQueryState.cs
- MenuTracker.cs
- CodeCatchClause.cs
- EntityConnection.cs
- AppDomain.cs
- DefaultValueConverter.cs
- COAUTHINFO.cs
- HebrewNumber.cs
- DynamicDataRouteHandler.cs
- AuthenticatingEventArgs.cs
- InternalResources.cs
- BooleanConverter.cs
- Bezier.cs
- StringFunctions.cs
- OdbcTransaction.cs
- InputChannel.cs
- InputProviderSite.cs