mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
ee0c75368c
Upstream change see https://github.com/chromiumembedded/cef/commit/d04b5d4f8747ec68370740729922a9cd6868b8f5#diff-447d40892c51b4ffc870cf1a28bab2ae2d411752216be4750a17193e6675b26bL2182 Resolves #4383
71 lines
2.1 KiB
C++
71 lines
2.1 KiB
C++
// Copyright © 2016 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#pragma once
|
|
|
|
#include "Stdafx.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace Core
|
|
{
|
|
/// <summary>
|
|
/// Class representing popup window features.
|
|
/// </summary>
|
|
/// <exclude />
|
|
[System::ComponentModel::EditorBrowsableAttribute(System::ComponentModel::EditorBrowsableState::Never)]
|
|
public ref class PopupFeatures : IPopupFeatures
|
|
{
|
|
private:
|
|
const CefPopupFeatures* _popupFeatures;
|
|
|
|
internal:
|
|
/// <summary>
|
|
/// Constructor.
|
|
/// </summary>
|
|
/// <param name="popupFeatures">The popup features.</param>
|
|
PopupFeatures(const CefPopupFeatures* popupFeatures)
|
|
{
|
|
_popupFeatures = popupFeatures;
|
|
}
|
|
|
|
public:
|
|
!PopupFeatures()
|
|
{
|
|
_popupFeatures = nullptr;
|
|
}
|
|
|
|
~PopupFeatures()
|
|
{
|
|
this->!PopupFeatures();
|
|
}
|
|
|
|
virtual property System::Nullable<int> X
|
|
{
|
|
System::Nullable<int> get() { return _popupFeatures->xSet ? _popupFeatures->x : Nullable<int>(); }
|
|
}
|
|
|
|
virtual property System::Nullable<int> Y
|
|
{
|
|
System::Nullable<int> get() { return _popupFeatures->ySet ? _popupFeatures->y : Nullable<int>(); }
|
|
}
|
|
|
|
virtual property System::Nullable<int> Width
|
|
{
|
|
System::Nullable<int> get() { return _popupFeatures->widthSet ? _popupFeatures->width : Nullable<int>(); }
|
|
}
|
|
|
|
virtual property System::Nullable<int> Height
|
|
{
|
|
System::Nullable<int> get() { return _popupFeatures->heightSet ? _popupFeatures->height : Nullable<int>(); }
|
|
}
|
|
|
|
virtual property bool IsPopup
|
|
{
|
|
bool get() { return _popupFeatures->isPopup == 1; }
|
|
}
|
|
};
|
|
}
|
|
}
|