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