コード例 #1
0
 public static int has_children(cef_domnode_t* self)
 {
     has_children_delegate d;
     var p = self->_has_children;
     if (p == _p12) { d = _d12; }
     else
     {
         d = (has_children_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_children_delegate));
         if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; }
     }
     return d(self);
 }
コード例 #2
0
 internal static CefDomNode FromNativeOrNull(cef_domnode_t* ptr)
 {
     if (ptr == null) return null;
     return new CefDomNode(ptr);
 }
コード例 #3
0
 public static int add_ref(cef_domnode_t* self)
 {
     add_ref_delegate d;
     var p = self->_base._add_ref;
     if (p == _p0) { d = _d0; }
     else
     {
         d = (add_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_ref_delegate));
         if (_p0 == IntPtr.Zero) { _d0 = d; _p0 = p; }
     }
     return d(self);
 }
コード例 #4
0
 public static void get_element_attributes(cef_domnode_t* self, cef_string_map* attrMap)
 {
     get_element_attributes_delegate d;
     var p = self->_get_element_attributes;
     if (p == _p1a) { d = _d1a; }
     else
     {
         d = (get_element_attributes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_attributes_delegate));
         if (_p1a == IntPtr.Zero) { _d1a = d; _p1a = p; }
     }
     d(self, attrMap);
 }
コード例 #5
0
 public static cef_string_userfree* get_element_inner_text(cef_domnode_t* self)
 {
     get_element_inner_text_delegate d;
     var p = self->_get_element_inner_text;
     if (p == _p1c) { d = _d1c; }
     else
     {
         d = (get_element_inner_text_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_inner_text_delegate));
         if (_p1c == IntPtr.Zero) { _d1c = d; _p1c = p; }
     }
     return d(self);
 }
コード例 #6
0
 public static cef_string_userfree* get_element_tag_name(cef_domnode_t* self)
 {
     get_element_tag_name_delegate d;
     var p = self->_get_element_tag_name;
     if (p == _p16) { d = _d16; }
     else
     {
         d = (get_element_tag_name_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_tag_name_delegate));
         if (_p16 == IntPtr.Zero) { _d16 = d; _p16 = p; }
     }
     return d(self);
 }
コード例 #7
0
 public static int has_element_attribute(cef_domnode_t* self, cef_string_t* attrName)
 {
     has_element_attribute_delegate d;
     var p = self->_has_element_attribute;
     if (p == _p18) { d = _d18; }
     else
     {
         d = (has_element_attribute_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_element_attribute_delegate));
         if (_p18 == IntPtr.Zero) { _d18 = d; _p18 = p; }
     }
     return d(self, attrName);
 }
コード例 #8
0
 public static int is_form_control_element(cef_domnode_t* self)
 {
     is_form_control_element_delegate d;
     var p = self->_is_form_control_element;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (is_form_control_element_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_form_control_element_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self);
 }
コード例 #9
0
 public static cef_string_userfree* get_form_control_element_type(cef_domnode_t* self)
 {
     get_form_control_element_type_delegate d;
     var p = self->_get_form_control_element_type;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (get_form_control_element_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_form_control_element_type_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     return d(self);
 }
コード例 #10
0
 public static int is_text(cef_domnode_t* self)
 {
     is_text_delegate d;
     var p = self->_is_text;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (is_text_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_text_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }
コード例 #11
0
 public static int is_editable(cef_domnode_t* self)
 {
     is_editable_delegate d;
     var p = self->_is_editable;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (is_editable_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_editable_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self);
 }
コード例 #12
0
 public static CefDomNodeType get_type(cef_domnode_t* self)
 {
     get_type_delegate d;
     var p = self->_get_type;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (get_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_type_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     return d(self);
 }
コード例 #13
0
 public static int get_refct(cef_domnode_t* self)
 {
     get_refct_delegate d;
     var p = self->_base._get_refct;
     if (p == _p2) { d = _d2; }
     else
     {
         d = (get_refct_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_refct_delegate));
         if (_p2 == IntPtr.Zero) { _d2 = d; _p2 = p; }
     }
     return d(self);
 }
コード例 #14
0
 public static int release(cef_domnode_t* self)
 {
     release_delegate d;
     var p = self->_base._release;
     if (p == _p1) { d = _d1; }
     else
     {
         d = (release_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(release_delegate));
         if (_p1 == IntPtr.Zero) { _d1 = d; _p1 = p; }
     }
     return d(self);
 }
コード例 #15
0
 public static cef_domnode_t* get_last_child(cef_domnode_t* self)
 {
     get_last_child_delegate d;
     var p = self->_get_last_child;
     if (p == _p14) { d = _d14; }
     else
     {
         d = (get_last_child_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_last_child_delegate));
         if (_p14 == IntPtr.Zero) { _d14 = d; _p14 = p; }
     }
     return d(self);
 }
コード例 #16
0
 public static int is_same(cef_domnode_t* self, cef_domnode_t* that)
 {
     is_same_delegate d;
     var p = self->_is_same;
     if (p == _p9) { d = _d9; }
     else
     {
         d = (is_same_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_same_delegate));
         if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; }
     }
     return d(self, that);
 }
コード例 #17
0
 public static void add_event_listener(cef_domnode_t* self, cef_string_t* eventType, cef_domevent_listener_t* listener, int useCapture)
 {
     add_event_listener_delegate d;
     var p = self->_add_event_listener;
     if (p == _p15) { d = _d15; }
     else
     {
         d = (add_event_listener_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_event_listener_delegate));
         if (_p15 == IntPtr.Zero) { _d15 = d; _p15 = p; }
     }
     d(self, eventType, listener, useCapture);
 }
コード例 #18
0
 public static cef_string_userfree* get_value(cef_domnode_t* self)
 {
     get_value_delegate d;
     var p = self->_get_value;
     if (p == _pb) { d = _db; }
     else
     {
         d = (get_value_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_value_delegate));
         if (_pb == IntPtr.Zero) { _db = d; _pb = p; }
     }
     return d(self);
 }
コード例 #19
0
 public static int has_element_attributes(cef_domnode_t* self)
 {
     has_element_attributes_delegate d;
     var p = self->_has_element_attributes;
     if (p == _p17) { d = _d17; }
     else
     {
         d = (has_element_attributes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_element_attributes_delegate));
         if (_p17 == IntPtr.Zero) { _d17 = d; _p17 = p; }
     }
     return d(self);
 }
コード例 #20
0
 public static int set_value(cef_domnode_t* self, cef_string_t* value)
 {
     set_value_delegate d;
     var p = self->_set_value;
     if (p == _pc) { d = _dc; }
     else
     {
         d = (set_value_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_value_delegate));
         if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
     }
     return d(self, value);
 }
コード例 #21
0
 public static cef_string_userfree* get_element_attribute(cef_domnode_t* self, cef_string_t* attrName)
 {
     get_element_attribute_delegate d;
     var p = self->_get_element_attribute;
     if (p == _p19) { d = _d19; }
     else
     {
         d = (get_element_attribute_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_attribute_delegate));
         if (_p19 == IntPtr.Zero) { _d19 = d; _p19 = p; }
     }
     return d(self, attrName);
 }
コード例 #22
0
 public static cef_string_userfree* get_as_markup(cef_domnode_t* self)
 {
     get_as_markup_delegate d;
     var p = self->_get_as_markup;
     if (p == _pd) { d = _dd; }
     else
     {
         d = (get_as_markup_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_as_markup_delegate));
         if (_pd == IntPtr.Zero) { _dd = d; _pd = p; }
     }
     return d(self);
 }
コード例 #23
0
 public static int set_element_attribute(cef_domnode_t* self, cef_string_t* attrName, cef_string_t* value)
 {
     set_element_attribute_delegate d;
     var p = self->_set_element_attribute;
     if (p == _p1b) { d = _d1b; }
     else
     {
         d = (set_element_attribute_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_element_attribute_delegate));
         if (_p1b == IntPtr.Zero) { _d1b = d; _p1b = p; }
     }
     return d(self, attrName, value);
 }
コード例 #24
0
 public static cef_domnode_t* get_parent(cef_domnode_t* self)
 {
     get_parent_delegate d;
     var p = self->_get_parent;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_parent_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_parent_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self);
 }
コード例 #25
0
 internal static CefDomNode FromNative(cef_domnode_t* ptr)
 {
     return new CefDomNode(ptr);
 }
コード例 #26
0
 public static cef_domnode_t* get_next_sibling(cef_domnode_t* self)
 {
     get_next_sibling_delegate d;
     var p = self->_get_next_sibling;
     if (p == _p11) { d = _d11; }
     else
     {
         d = (get_next_sibling_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_next_sibling_delegate));
         if (_p11 == IntPtr.Zero) { _d11 = d; _p11 = p; }
     }
     return d(self);
 }
コード例 #27
0
 private CefDomNode(cef_domnode_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
コード例 #28
0
        private void on_focused_node_changed(cef_render_process_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_domnode_t* node)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);
            var m_frame = CefFrame.FromNative(frame);
            var m_node = CefDomNode.FromNativeOrNull(node);

            OnFocusedNodeChanged(m_browser, m_frame, m_node);

            if (m_node != null) m_node.Dispose();
        }