admin
2020-06-10 a610f2ab6e543d2cb78c1ef212ac6a74ddc067d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// 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
{
    /// <summary>
    /// Class representing popup window features.
    /// </summary>
    /// <exclude />
    public ref class PopupFeatures : IPopupFeatures
    {
    private:
        const CefPopupFeatures* _popupFeatures;
 
    public:
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="popupFeatures">The popup features.</param>
        PopupFeatures(const CefPopupFeatures* popupFeatures)
        {
            _popupFeatures = popupFeatures;
        }
 
        !PopupFeatures()
        {
            _popupFeatures = NULL;
        }
 
        ~PopupFeatures()
        {
            this->!PopupFeatures();
        }
 
        virtual property int X
        {
            int get() { return _popupFeatures->x; }
        }
 
        virtual property int XSet
        {
            int get() { return _popupFeatures->xSet; }
        }
 
        virtual property int Y
        {
            int get() { return _popupFeatures->y; }
        }
 
        virtual property int YSet
        {
            int get() { return _popupFeatures->ySet; }
        }
 
        virtual property int Width
        {
            int get() { return _popupFeatures->width; }
        }
 
        virtual property int WidthSet
        {
            int get() { return _popupFeatures->width; }
        }
 
        virtual property int Height
        {
            int get() { return _popupFeatures->height; }
        }
 
        virtual property int HeightSet
        {
            int get() { return _popupFeatures->heightSet; }
        }
 
        virtual property bool MenuBarVisible
        {
            bool get() { return _popupFeatures->menuBarVisible == 1; }
        }
 
        virtual property bool StatusBarVisible
        {
            bool get() { return _popupFeatures->statusBarVisible == 1; }
        }
 
        virtual property bool ToolBarVisible
        {
            bool get() { return _popupFeatures->toolBarVisible == 1; }
        }
 
        virtual property bool ScrollbarsVisible
        {
            bool get() { return _popupFeatures->scrollbarsVisible == 1; }
        }
 
        /*property List<String^>^ AdditionalFeatures
        {
            List<String^>^ get() { return StringUtils::ToClr(_popupFeatures->additionalFeatures); }
            void set(List<String^>^ value) { _popupFeatures->dialog = value; }
        }*/
    };
}