Ejemplo n.º 1
0
 private int visit(cef_navigation_entry_visitor_t* self, cef_navigation_entry_t* entry, int current, int index, int total)
 {
     CheckSelf(self);
     var m_entry = CefNavigationEntry.FromNative(entry);
     var m_result = Visit(m_entry, current != 0, index, total);
     m_entry.Dispose();
     return m_result ? 1 : 0;
 }
Ejemplo n.º 2
0
 internal static CefNavigationEntry FromNativeOrNull(cef_navigation_entry_t* ptr)
 {
     if (ptr == null) return null;
     return new CefNavigationEntry(ptr);
 }
Ejemplo n.º 3
0
 private CefNavigationEntry(cef_navigation_entry_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
Ejemplo n.º 4
0
 public static int get_http_status_code(cef_navigation_entry_t* self)
 {
     get_http_status_code_delegate d;
     var p = self->_get_http_status_code;
     if (p == _pc) { d = _dc; }
     else
     {
         d = (get_http_status_code_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_http_status_code_delegate));
         if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
     }
     return d(self);
 }
Ejemplo n.º 5
0
 internal static CefNavigationEntry FromNative(cef_navigation_entry_t* ptr)
 {
     return new CefNavigationEntry(ptr);
 }
Ejemplo n.º 6
0
 public static cef_string_userfree* get_frame_name(cef_navigation_entry_t* self)
 {
     get_frame_name_delegate d;
     var p = self->_get_frame_name;
     if (p == _pa) { d = _da; }
     else
     {
         d = (get_frame_name_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_frame_name_delegate));
         if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
     }
     return d(self);
 }
Ejemplo n.º 7
0
 public static cef_time_t get_completion_time(cef_navigation_entry_t* self)
 {
     get_completion_time_delegate d;
     var p = self->_get_completion_time;
     if (p == _pb) { d = _db; }
     else
     {
         d = (get_completion_time_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_completion_time_delegate));
         if (_pb == IntPtr.Zero) { _db = d; _pb = p; }
     }
     return d(self);
 }
Ejemplo n.º 8
0
 public static CefTransitionType get_transition_type(cef_navigation_entry_t* self)
 {
     get_transition_type_delegate d;
     var p = self->_get_transition_type;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (get_transition_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_transition_type_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     return d(self);
 }
Ejemplo n.º 9
0
 public static int has_post_data(cef_navigation_entry_t* self)
 {
     has_post_data_delegate d;
     var p = self->_has_post_data;
     if (p == _p9) { d = _d9; }
     else
     {
         d = (has_post_data_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_post_data_delegate));
         if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; }
     }
     return d(self);
 }
Ejemplo n.º 10
0
 public static cef_string_userfree* get_original_url(cef_navigation_entry_t* self)
 {
     get_original_url_delegate d;
     var p = self->_get_original_url;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (get_original_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_original_url_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self);
 }
Ejemplo n.º 11
0
 public static int is_valid(cef_navigation_entry_t* self)
 {
     is_valid_delegate d;
     var p = self->_is_valid;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (is_valid_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_valid_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     return d(self);
 }
Ejemplo n.º 12
0
 public static int has_one_ref(cef_navigation_entry_t* self)
 {
     has_one_ref_delegate d;
     var p = self->_base._has_one_ref;
     if (p == _p2) { d = _d2; }
     else
     {
         d = (has_one_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_one_ref_delegate));
         if (_p2 == IntPtr.Zero) { _d2 = d; _p2 = p; }
     }
     return d(self);
 }
Ejemplo n.º 13
0
 public static int release(cef_navigation_entry_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);
 }
Ejemplo n.º 14
0
 public static void add_ref(cef_navigation_entry_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; }
     }
     d(self);
 }