Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / ClientSideQueueItem.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeArrayTypeMismatchException.cs
- PlaceHolder.cs
- X509Certificate.cs
- Triplet.cs
- WebPartEditorOkVerb.cs
- XmlUTF8TextWriter.cs
- XmlDataSourceDesigner.cs
- ToolStripDropDown.cs
- TraceContext.cs
- AlgoModule.cs
- FormatConvertedBitmap.cs
- TrustManagerMoreInformation.cs
- CaseInsensitiveHashCodeProvider.cs
- XAMLParseException.cs
- CheckBox.cs
- ErrorWrapper.cs
- RelationshipManager.cs
- NamespaceInfo.cs
- LabelLiteral.cs
- SendDesigner.xaml.cs
- CngAlgorithmGroup.cs
- StopStoryboard.cs
- ITreeGenerator.cs
- PageContentAsyncResult.cs
- PopupRoot.cs
- ResXResourceSet.cs
- StrokeNodeOperations.cs
- ToolStripItemTextRenderEventArgs.cs
- SubqueryRules.cs
- CollectionViewGroupRoot.cs
- ProviderUtil.cs
- CheckPair.cs
- SqlClientPermission.cs
- TextParentUndoUnit.cs
- ToolStripCollectionEditor.cs
- DataControlFieldTypeEditor.cs
- Int16AnimationUsingKeyFrames.cs
- SiteMapNodeItem.cs
- InternalBufferOverflowException.cs
- MediaTimeline.cs
- ConfigurationSectionCollection.cs
- ResourceProviderFactory.cs
- CodeEntryPointMethod.cs
- RIPEMD160Managed.cs
- messageonlyhwndwrapper.cs
- TextEffectCollection.cs
- IntegerValidatorAttribute.cs
- MaterialGroup.cs
- Parameter.cs
- WebWorkflowRole.cs
- SerialStream.cs
- KeyValuePair.cs
- BreakSafeBase.cs
- PointAnimationUsingPath.cs
- TemplateBindingExtension.cs
- Byte.cs
- KnownBoxes.cs
- TextElementEnumerator.cs
- CompilerErrorCollection.cs
- AttachedPropertyBrowsableAttribute.cs
- RewritingValidator.cs
- GeometryHitTestResult.cs
- HtmlTextBoxAdapter.cs
- TimeoutTimer.cs
- Italic.cs
- SQLDecimalStorage.cs
- LogLogRecord.cs
- Freezable.cs
- OdbcDataAdapter.cs
- ReferenceConverter.cs
- XamlTemplateSerializer.cs
- DataContractJsonSerializer.cs
- MessagePartDescriptionCollection.cs
- RecordManager.cs
- SqlTransaction.cs
- EditCommandColumn.cs
- Compiler.cs
- XmlNodeReader.cs
- ButtonFieldBase.cs
- EntityDataSourceDataSelectionPanel.cs
- ServiceHostFactory.cs
- KeyValuePairs.cs
- WebBrowserNavigatedEventHandler.cs
- CommandDevice.cs
- LinqDataSourceSelectEventArgs.cs
- TailCallAnalyzer.cs
- OdbcErrorCollection.cs
- Control.cs
- RetrieveVirtualItemEventArgs.cs
- HttpConfigurationContext.cs
- ScriptingSectionGroup.cs
- WebPartTracker.cs
- RectangleF.cs
- BrowserCapabilitiesFactoryBase.cs
- ByteAnimationUsingKeyFrames.cs
- DesignTable.cs
- MergeLocalizationDirectives.cs
- AudioFormatConverter.cs
- GrammarBuilderBase.cs
- Page.cs