Skip to content

Commit ee0c753

Browse files
committed
1 parent 2cb65ef commit ee0c753

File tree

2 files changed

+4
-43
lines changed

2 files changed

+4
-43
lines changed

CefSharp.Core.Runtime/PopupFeatures.h

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,9 @@ namespace CefSharp
6161
System::Nullable<int> get() { return _popupFeatures->heightSet ? _popupFeatures->height : Nullable<int>(); }
6262
}
6363

64-
virtual property bool MenuBarVisible
64+
virtual property bool IsPopup
6565
{
66-
bool get() { return _popupFeatures->menuBarVisible == 1; }
67-
}
68-
69-
virtual property bool StatusBarVisible
70-
{
71-
bool get() { return _popupFeatures->statusBarVisible == 1; }
72-
}
73-
74-
virtual property bool ToolBarVisible
75-
{
76-
bool get() { return _popupFeatures->toolBarVisible == 1; }
77-
}
78-
79-
virtual property bool ScrollbarsVisible
80-
{
81-
bool get() { return _popupFeatures->scrollbarsVisible == 1; }
66+
bool get() { return _popupFeatures->isPopup == 1; }
8267
}
8368
};
8469
}

CefSharp/IPopupFeatures.cs

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,8 @@ public interface IPopupFeatures
3838
/// </value>
3939
int? Height { get; }
4040
/// <summary>
41-
/// Gets a value indicating whether the menu bar is visible.
41+
/// Returns true if browser interface elements should be hidden.
4242
/// </summary>
43-
/// <value>
44-
/// True if menu bar visible, false if not.
45-
/// </value>
46-
bool MenuBarVisible { get; }
47-
/// <summary>
48-
/// Gets a value indicating whether the status bar is visible.
49-
/// </summary>
50-
/// <value>
51-
/// True if status bar visible, false if not.
52-
/// </value>
53-
bool StatusBarVisible { get; }
54-
/// <summary>
55-
/// Gets a value indicating whether the tool bar is visible.
56-
/// </summary>
57-
/// <value>
58-
/// True if tool bar visible, false if not.
59-
/// </value>
60-
bool ToolBarVisible { get; }
61-
/// <summary>
62-
/// Gets a value indicating whether the scrollbars is visible.
63-
/// </summary>
64-
/// <value>
65-
/// True if scrollbars visible, false if not.
66-
/// </value>
67-
bool ScrollbarsVisible { get; }
43+
bool IsPopup { get; }
6844
}
6945
}

0 commit comments

Comments
 (0)