136 references to WebBrowserHelper
System.Windows.Forms (136)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1164RECT clipRect = WebBrowserHelper.GetClipRect();
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
392*lprcClipRect = WebBrowserHelper.GetClipRect(); 458RECT clipRect = WebBrowserHelper.GetClipRect();
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1400TransitionUpTo(WebBrowserHelper.AXState.InPlaceActive);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (97)
34private WebBrowserHelper.AXState _axState = WebBrowserHelper.AXState.Passive; 35private WebBrowserHelper.AXState _axReloadingState = WebBrowserHelper.AXState.Passive; 36private WebBrowserHelper.AXEditMode _axEditMode = WebBrowserHelper.AXEditMode.None; 38private WebBrowserHelper.SelectionStyle _selectionStyle = WebBrowserHelper.SelectionStyle.NotSelected; 81SetAXHostState(WebBrowserHelper.s_isMaskEdit, _clsid.Equals(WebBrowserHelper.s_maskEdit_Clsid)); 195if (ActiveXState >= WebBrowserHelper.AXState.InPlaceActive) 202RECT clipRect = WebBrowserHelper.GetClipRect(); 235if (GetAXHostState(WebBrowserHelper.s_siteProcessedInputKey)) 244SetAXHostState(WebBrowserHelper.s_siteProcessedInputKey, false); 285else if (GetAXHostState(WebBrowserHelper.s_siteProcessedInputKey)) 297SetAXHostState(WebBrowserHelper.s_siteProcessedInputKey, false); 423if (ActiveXState >= WebBrowserHelper.AXState.InPlaceActive) 442TransitionDownTo(WebBrowserHelper.AXState.Running); 450if (m.MsgInternal == WebBrowserHelper.REGMSG_MSG) 452m.ResultInternal = (LRESULT)WebBrowserHelper.REGMSG_RETVAL; 468TransitionUpTo(WebBrowserHelper.AXState.InPlaceActive); 478TransitionUpTo(WebBrowserHelper.AXState.InPlaceActive); 486if (ActiveXState < WebBrowserHelper.AXState.UIActive) 488TransitionUpTo(WebBrowserHelper.AXState.UIActive); 502TransitionDownTo(WebBrowserHelper.AXState.InPlaceActive); 516return ActiveXState >= WebBrowserHelper.AXState.InPlaceActive && base.CanSelectCore(); 561TransitionDownTo(WebBrowserHelper.AXState.Passive); 571internal WebBrowserHelper.AXState ActiveXState 583internal void TransitionUpTo(WebBrowserHelper.AXState state) 585if (GetAXHostState(WebBrowserHelper.s_inTransition)) 590SetAXHostState(WebBrowserHelper.s_inTransition, true); 598case WebBrowserHelper.AXState.Passive: 600Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Loaded, "Failed transition"); 602case WebBrowserHelper.AXState.Loaded: 604Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Running, "Failed transition"); 606case WebBrowserHelper.AXState.Running: 608Debug.Assert(ActiveXState == WebBrowserHelper.AXState.InPlaceActive, "Failed transition"); 610case WebBrowserHelper.AXState.InPlaceActive: 612Debug.Assert(ActiveXState == WebBrowserHelper.AXState.UIActive, "Failed transition"); 623SetAXHostState(WebBrowserHelper.s_inTransition, false); 627internal void TransitionDownTo(WebBrowserHelper.AXState state) 629if (!GetAXHostState(WebBrowserHelper.s_inTransition)) 631SetAXHostState(WebBrowserHelper.s_inTransition, true); 639case WebBrowserHelper.AXState.UIActive: 641Debug.Assert(ActiveXState == WebBrowserHelper.AXState.InPlaceActive, "Failed transition"); 643case WebBrowserHelper.AXState.InPlaceActive: 645Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Running, "Failed transition"); 647case WebBrowserHelper.AXState.Running: 649Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Loaded, "Failed transition"); 651case WebBrowserHelper.AXState.Loaded: 653Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Passive, "Failed transition"); 664SetAXHostState(WebBrowserHelper.s_inTransition, false); 695GetAXHostState(WebBrowserHelper.s_recomputeContainingControl)) 720internal void SetEditMode(WebBrowserHelper.AXEditMode em) 725internal void SetSelectionStyle(WebBrowserHelper.SelectionStyle selectionStyle) 729ISelectionService? iss = WebBrowserHelper.GetSelectionService(this); 746if (!GetAXHostState(WebBrowserHelper.s_addedSelectionHandler)) 748SetAXHostState(WebBrowserHelper.s_addedSelectionHandler, true); 750ISelectionService? iss = WebBrowserHelper.GetSelectionService(this); 760bool retVal = GetAXHostState(WebBrowserHelper.s_addedSelectionHandler); 763SetAXHostState(WebBrowserHelper.s_addedSelectionHandler, false); 765ISelectionService? iss = WebBrowserHelper.GetSelectionService(this); 813if (!GetAXHostState(WebBrowserHelper.s_sinkAttached)) 815SetAXHostState(WebBrowserHelper.s_sinkAttached, true); 824if (GetAXHostState(WebBrowserHelper.s_sinkAttached)) 826SetAXHostState(WebBrowserHelper.s_sinkAttached, false); 835Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Passive, "Wrong start state to transition from"); 836if (ActiveXState == WebBrowserHelper.AXState.Passive) 855ActiveXState = WebBrowserHelper.AXState.Loaded; 864Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Loaded, "Wrong start state to transition from"); 865if (ActiveXState == WebBrowserHelper.AXState.Loaded) 887ActiveXState = WebBrowserHelper.AXState.Passive; 893Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Loaded, "Wrong start state to transition from"); 894if (ActiveXState == WebBrowserHelper.AXState.Loaded) 912ActiveXState = WebBrowserHelper.AXState.Running; 918Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Running, "Wrong start state to transition from"); 919if (ActiveXState == WebBrowserHelper.AXState.Running) 931ActiveXState = WebBrowserHelper.AXState.Loaded; 937Debug.Assert(ActiveXState == WebBrowserHelper.AXState.Running, "Wrong start state to transition from"); 938if (ActiveXState == WebBrowserHelper.AXState.Running) 953ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 959Debug.Assert(ActiveXState == WebBrowserHelper.AXState.InPlaceActive, "Wrong start state to transition from"); 960if (ActiveXState == WebBrowserHelper.AXState.InPlaceActive) 974ActiveXState = WebBrowserHelper.AXState.Running; 980Debug.Assert(ActiveXState == WebBrowserHelper.AXState.InPlaceActive, "Wrong start state to transition from"); 981if (ActiveXState == WebBrowserHelper.AXState.InPlaceActive) 994ActiveXState = WebBrowserHelper.AXState.UIActive; 1000Debug.Assert(ActiveXState == WebBrowserHelper.AXState.UIActive, "Wrong start state to transition from"); 1001if (ActiveXState == WebBrowserHelper.AXState.UIActive) 1007ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 1048ISelectionService? iss = WebBrowserHelper.GetSelectionService(this); 1058SetEditMode(WebBrowserHelper.AXEditMode.None); 1061SetSelectionStyle(WebBrowserHelper.SelectionStyle.Selected); 1135_axEditMode != WebBrowserHelper.AXEditMode.None; 1165SetAXHostState(WebBrowserHelper.s_recomputeContainingControl, containerControl is null); 1224if (_axReloadingState != WebBrowserHelper.AXState.Passive && _axReloadingState != _axState) 1235_axReloadingState = WebBrowserHelper.AXState.Passive;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (7)
94_controlInEditMode.SetEditMode(WebBrowserHelper.AXEditMode.None); 120_controlInEditMode.SetSelectionStyle(WebBrowserHelper.SelectionStyle.Selected); 121_controlInEditMode.SetEditMode(WebBrowserHelper.AXEditMode.None); 133control.SetEditMode(WebBrowserHelper.AXEditMode.Object); 135control.SetSelectionStyle(WebBrowserHelper.SelectionStyle.Active); 394site.SetSelectionStyle(WebBrowserHelper.SelectionStyle.Selected); 395site.SetEditMode(WebBrowserHelper.AXEditMode.None);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (28)
95pPtfContainer->X = WebBrowserHelper.HM2Pix(pPtlHimetric->x, WebBrowserHelper.LogPixelsX); 96pPtfContainer->Y = WebBrowserHelper.HM2Pix(pPtlHimetric->y, WebBrowserHelper.LogPixelsY); 100pPtfContainer->X = WebBrowserHelper.HM2Pix(pPtlHimetric->x, WebBrowserHelper.LogPixelsX); 101pPtfContainer->Y = WebBrowserHelper.HM2Pix(pPtlHimetric->y, WebBrowserHelper.LogPixelsY); 112pPtlHimetric->x = WebBrowserHelper.Pix2HM((int)pPtfContainer->X, WebBrowserHelper.LogPixelsX); 113pPtlHimetric->y = WebBrowserHelper.Pix2HM((int)pPtfContainer->Y, WebBrowserHelper.LogPixelsY); 117pPtlHimetric->x = WebBrowserHelper.Pix2HM((int)pPtfContainer->X, WebBrowserHelper.LogPixelsX); 118pPtlHimetric->y = WebBrowserHelper.Pix2HM((int)pPtfContainer->Y, WebBrowserHelper.LogPixelsY); 140Debug.Assert(!Host.GetAXHostState(WebBrowserHelper.s_siteProcessedInputKey), "Re-entering IOleControlSite.TranslateAccelerator!!!"); 141Host.SetAXHostState(WebBrowserHelper.s_siteProcessedInputKey, true); 151Host.SetAXHostState(WebBrowserHelper.s_siteProcessedInputKey, false); 186if (Host.ActiveXState >= WebBrowserHelper.AXState.InPlaceActive) 232Host.ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 240Host.ActiveXState = WebBrowserHelper.AXState.UIActive; 265*lprcClipRect = WebBrowserHelper.GetClipRect(); 283if (Host.ActiveXState > WebBrowserHelper.AXState.InPlaceActive) 285Host.ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 293if (Host.ActiveXState == WebBrowserHelper.AXState.UIActive) 299Host.ActiveXState = WebBrowserHelper.AXState.Running; 416RECT clipRect = WebBrowserHelper.GetClipRect();