133 references to WebBrowserHelper
System.Windows.Forms (133)
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1667TransitionUpTo(WebBrowserHelper.AXState.InPlaceActive);
winforms\Managed\System\WinForms\WebBrowserBase.cs (97)
59private WebBrowserHelper.AXState axState = WebBrowserHelper.AXState.Passive; 60private WebBrowserHelper.AXState axReloadingState = WebBrowserHelper.AXState.Passive; 61private WebBrowserHelper.AXEditMode axEditMode = WebBrowserHelper.AXEditMode.None; 64private WebBrowserHelper.SelectionStyle selectionStyle = WebBrowserHelper.SelectionStyle.NotSelected; 116this.SetAXHostState(WebBrowserHelper.isMaskEdit, this.clsid.Equals(WebBrowserHelper.maskEdit_Clsid)); 254if (this.ActiveXState >= WebBrowserHelper.AXState.InPlaceActive) { 258this.AXInPlaceObject.SetObjectRects(new NativeMethods.COMRECT(new Rectangle(0, 0, width, height)), WebBrowserHelper.GetClipRect()); 293if (this.GetAXHostState(WebBrowserHelper.siteProcessedInputKey)) { 307this.SetAXHostState(WebBrowserHelper.siteProcessedInputKey, false); 347else if (this.GetAXHostState(WebBrowserHelper.siteProcessedInputKey)) 361this.SetAXHostState(WebBrowserHelper.siteProcessedInputKey, false); 490if (this.ActiveXState >= WebBrowserHelper.AXState.InPlaceActive) { 506TransitionDownTo(WebBrowserHelper.AXState.Running); 516if (m.Msg == WebBrowserHelper.REGMSG_MSG) { 517m.Result = (IntPtr)WebBrowserHelper.REGMSG_RETVAL; 531TransitionUpTo(WebBrowserHelper.AXState.InPlaceActive); 540TransitionUpTo(WebBrowserHelper.AXState.InPlaceActive); 548if (this.ActiveXState < WebBrowserHelper.AXState.UIActive) { 549TransitionUpTo(WebBrowserHelper.AXState.UIActive); 562TransitionDownTo(WebBrowserHelper.AXState.InPlaceActive); 575return this.ActiveXState >= WebBrowserHelper.AXState.InPlaceActive ? 629TransitionDownTo(WebBrowserHelper.AXState.Passive); 650internal WebBrowserHelper.AXState ActiveXState { 671internal void TransitionUpTo(WebBrowserHelper.AXState state) { 672if (!this.GetAXHostState(WebBrowserHelper.inTransition)) { 673this.SetAXHostState(WebBrowserHelper.inTransition, true); 678case WebBrowserHelper.AXState.Passive: 680Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Loaded, "Failed transition"); 682case WebBrowserHelper.AXState.Loaded: 684Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Running, "Failed transition"); 686case WebBrowserHelper.AXState.Running: 688Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.InPlaceActive, "Failed transition"); 690case WebBrowserHelper.AXState.InPlaceActive: 692Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.UIActive, "Failed transition"); 702this.SetAXHostState(WebBrowserHelper.inTransition, false); 707internal void TransitionDownTo(WebBrowserHelper.AXState state) { 708if (!this.GetAXHostState(WebBrowserHelper.inTransition)) { 709this.SetAXHostState(WebBrowserHelper.inTransition, true); 714case WebBrowserHelper.AXState.UIActive: 716Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.InPlaceActive, "Failed transition"); 718case WebBrowserHelper.AXState.InPlaceActive: 720Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Running, "Failed transition"); 722case WebBrowserHelper.AXState.Running: 724Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Loaded, "Failed transition"); 726case WebBrowserHelper.AXState.Loaded: 728Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Passive, "Failed transition"); 738this.SetAXHostState(WebBrowserHelper.inTransition, false); 765this.GetAXHostState(WebBrowserHelper.recomputeContainingControl)) { 793internal void SetEditMode(WebBrowserHelper.AXEditMode em) { 797internal void SetSelectionStyle(WebBrowserHelper.SelectionStyle selectionStyle) { 799ISelectionService iss = WebBrowserHelper.GetSelectionService(this); 813if (!this.GetAXHostState(WebBrowserHelper.addedSelectionHandler)) { 814this.SetAXHostState(WebBrowserHelper.addedSelectionHandler, true); 816ISelectionService iss = WebBrowserHelper.GetSelectionService(this); 824bool retVal = this.GetAXHostState(WebBrowserHelper.addedSelectionHandler); 826this.SetAXHostState(WebBrowserHelper.addedSelectionHandler, false); 828ISelectionService iss = WebBrowserHelper.GetSelectionService(this); 893if (!this.GetAXHostState(WebBrowserHelper.sinkAttached)) { 894this.SetAXHostState(WebBrowserHelper.sinkAttached, true); 901if (this.GetAXHostState(WebBrowserHelper.sinkAttached)) { 902this.SetAXHostState(WebBrowserHelper.sinkAttached, false); 909Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Passive, "Wrong start state to transition from"); 910if (this.ActiveXState == WebBrowserHelper.AXState.Passive) { 919this.ActiveXState = WebBrowserHelper.AXState.Loaded; 929Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Loaded, "Wrong start state to transition from"); 930if (this.ActiveXState == WebBrowserHelper.AXState.Loaded) { 953this.ActiveXState = WebBrowserHelper.AXState.Passive; 958Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Loaded, "Wrong start state to transition from"); 959if (this.ActiveXState == WebBrowserHelper.AXState.Loaded) { 980this.ActiveXState = WebBrowserHelper.AXState.Running; 985Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Running, "Wrong start state to transition from"); 986if (this.ActiveXState == WebBrowserHelper.AXState.Running) { 1002this.ActiveXState = WebBrowserHelper.AXState.Loaded; 1007Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.Running, "Wrong start state to transition from"); 1008if (this.ActiveXState == WebBrowserHelper.AXState.Running) { 1022this.ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 1027Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.InPlaceActive, "Wrong start state to transition from"); 1028if (this.ActiveXState == WebBrowserHelper.AXState.InPlaceActive) { 1043this.ActiveXState = WebBrowserHelper.AXState.Running; 1048Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.InPlaceActive, "Wrong start state to transition from"); 1049if (this.ActiveXState == WebBrowserHelper.AXState.InPlaceActive) { 1059this.ActiveXState = WebBrowserHelper.AXState.UIActive; 1064Debug.Assert(this.ActiveXState == WebBrowserHelper.AXState.UIActive, "Wrong start state to transition from"); 1065if (this.ActiveXState == WebBrowserHelper.AXState.UIActive) { 1070this.ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 1122ISelectionService iss = WebBrowserHelper.GetSelectionService(this); 1130this.SetEditMode(WebBrowserHelper.AXEditMode.None); 1132this.SetSelectionStyle(WebBrowserHelper.SelectionStyle.Selected); 1203return this.axEditMode != WebBrowserHelper.AXEditMode.None; 1236this.SetAXHostState(WebBrowserHelper.recomputeContainingControl, cc == null); 1369if (axReloadingState != WebBrowserHelper.AXState.Passive && axReloadingState != axState) { 1376axReloadingState = WebBrowserHelper.AXState.Passive;
winforms\Managed\System\WinForms\WebBrowserContainer.cs (7)
95ctlInEditMode.SetEditMode(WebBrowserHelper.AXEditMode.None); 117ctlInEditMode.SetSelectionStyle(WebBrowserHelper.SelectionStyle.Selected); 118ctlInEditMode.SetEditMode(WebBrowserHelper.AXEditMode.None); 127ctl.SetEditMode(WebBrowserHelper.AXEditMode.Object); 129ctl.SetSelectionStyle(WebBrowserHelper.SelectionStyle.Active); 371site.SetSelectionStyle(WebBrowserHelper.SelectionStyle.Selected); 372site.SetEditMode(WebBrowserHelper.AXEditMode.None);
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (28)
134pPtfContainer.x = (float) WebBrowserHelper.HM2Pix(pPtlHimetric.x, WebBrowserHelper.LogPixelsX); 135pPtfContainer.y = (float) WebBrowserHelper.HM2Pix(pPtlHimetric.y, WebBrowserHelper.LogPixelsY); 138pPtfContainer.x = (float) WebBrowserHelper.HM2Pix(pPtlHimetric.x, WebBrowserHelper.LogPixelsX); 139pPtfContainer.y = (float) WebBrowserHelper.HM2Pix(pPtlHimetric.y, WebBrowserHelper.LogPixelsY); 147pPtlHimetric.x = WebBrowserHelper.Pix2HM((int)pPtfContainer.x, WebBrowserHelper.LogPixelsX); 148pPtlHimetric.y = WebBrowserHelper.Pix2HM((int)pPtfContainer.y, WebBrowserHelper.LogPixelsY); 151pPtlHimetric.x = WebBrowserHelper.Pix2HM((int)pPtfContainer.x, WebBrowserHelper.LogPixelsX); 152pPtlHimetric.y = WebBrowserHelper.Pix2HM((int)pPtfContainer.y, WebBrowserHelper.LogPixelsY); 168Debug.Assert(!this.Host.GetAXHostState(WebBrowserHelper.siteProcessedInputKey), "Re-entering UnsafeNativeMethods.IOleControlSite.TranslateAccelerator!!!"); 169this.Host.SetAXHostState(WebBrowserHelper.siteProcessedInputKey, true); 182this.Host.SetAXHostState(WebBrowserHelper.siteProcessedInputKey, false); 225if (this.Host.ActiveXState >= WebBrowserHelper.AXState.InPlaceActive) { 286this.Host.ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 294this.Host.ActiveXState = WebBrowserHelper.AXState.UIActive; 311lprcClipRect = WebBrowserHelper.GetClipRect(); 332if (this.Host.ActiveXState > WebBrowserHelper.AXState.InPlaceActive) { 333this.Host.ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 341if (this.Host.ActiveXState == WebBrowserHelper.AXState.UIActive) { 346this.Host.ActiveXState = WebBrowserHelper.AXState.Running; 494WebBrowserHelper.GetClipRect());