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