本文整理汇总了C#中Xilium.CefGlue.Interop.cef_browser_host_t类的典型用法代码示例。如果您正苦于以下问题:C# cef_browser_host_t类的具体用法?C# cef_browser_host_t怎么用?C# cef_browser_host_t使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
cef_browser_host_t类属于Xilium.CefGlue.Interop命名空间,在下文中一共展示了cef_browser_host_t类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: cont
private void cont(cef_run_file_dialog_callback_t* self, cef_browser_host_t* browser_host, cef_string_list* file_paths)
{
CheckSelf(self);
var mBrowserHost = CefBrowserHost.FromNative(browser_host);
var mFilePaths = cef_string_list.ToArray(file_paths);
OnFileDialogDismissed(mBrowserHost, mFilePaths);
}
示例2: get_client
public static cef_client_t* get_client(cef_browser_host_t* self)
{
get_client_delegate d;
var p = self->_get_client;
if (p == _p9) { d = _d9; }
else
{
d = (get_client_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_client_delegate));
if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; }
}
return d(self);
}
示例3: drag_target_drag_over
public static void drag_target_drag_over(cef_browser_host_t* self, cef_mouse_event_t* @event, CefDragOperationsMask allowed_ops)
{
drag_target_drag_over_delegate d;
var p = self->_drag_target_drag_over;
if (p == _p26) { d = _d26; }
else
{
d = (drag_target_drag_over_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(drag_target_drag_over_delegate));
if (_p26 == IntPtr.Zero) { _d26 = d; _p26 = p; }
}
d(self, @event, allowed_ops);
}
示例4: get_nstext_input_context
public static IntPtr get_nstext_input_context(cef_browser_host_t* self)
{
get_nstext_input_context_delegate d;
var p = self->_get_nstext_input_context;
if (p == _p22) { d = _d22; }
else
{
d = (get_nstext_input_context_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_nstext_input_context_delegate));
if (_p22 == IntPtr.Zero) { _d22 = d; _p22 = p; }
}
return d(self);
}
示例5: send_focus_event
public static void send_focus_event(cef_browser_host_t* self, int setFocus)
{
send_focus_event_delegate d;
var p = self->_send_focus_event;
if (p == _p20) { d = _d20; }
else
{
d = (send_focus_event_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(send_focus_event_delegate));
if (_p20 == IntPtr.Zero) { _d20 = d; _p20 = p; }
}
d(self, setFocus);
}
示例6: send_mouse_move_event
public static void send_mouse_move_event(cef_browser_host_t* self, cef_mouse_event_t* @event, int mouseLeave)
{
send_mouse_move_event_delegate d;
var p = self->_send_mouse_move_event;
if (p == _p1e) { d = _d1e; }
else
{
d = (send_mouse_move_event_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(send_mouse_move_event_delegate));
if (_p1e == IntPtr.Zero) { _d1e = d; _p1e = p; }
}
d(self, @event, mouseLeave);
}
示例7: send_key_event
public static void send_key_event(cef_browser_host_t* self, cef_key_event_t* @event)
{
send_key_event_delegate d;
var p = self->_send_key_event;
if (p == _p1c) { d = _d1c; }
else
{
d = (send_key_event_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(send_key_event_delegate));
if (_p1c == IntPtr.Zero) { _d1c = d; _p1c = p; }
}
d(self, @event);
}
示例8: notify_screen_info_changed
public static void notify_screen_info_changed(cef_browser_host_t* self)
{
notify_screen_info_changed_delegate d;
var p = self->_notify_screen_info_changed;
if (p == _p1a) { d = _d1a; }
else
{
d = (notify_screen_info_changed_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(notify_screen_info_changed_delegate));
if (_p1a == IntPtr.Zero) { _d1a = d; _p1a = p; }
}
d(self);
}
示例9: find
public static void find(cef_browser_host_t* self, int identifier, cef_string_t* searchText, int forward, int matchCase, int findNext)
{
find_delegate d;
var p = self->_find;
if (p == _p10) { d = _d10; }
else
{
d = (find_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(find_delegate));
if (_p10 == IntPtr.Zero) { _d10 = d; _p10 = p; }
}
d(self, identifier, searchText, forward, matchCase, findNext);
}
示例10: print
public static void print(cef_browser_host_t* self)
{
print_delegate d;
var p = self->_print;
if (p == _pf) { d = _df; }
else
{
d = (print_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(print_delegate));
if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
}
d(self);
}
示例11: start_download
public static void start_download(cef_browser_host_t* self, cef_string_t* url)
{
start_download_delegate d;
var p = self->_start_download;
if (p == _pe) { d = _de; }
else
{
d = (start_download_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(start_download_delegate));
if (_pe == IntPtr.Zero) { _de = d; _pe = p; }
}
d(self, url);
}
示例12: run_file_dialog
public static void run_file_dialog(cef_browser_host_t* self, CefFileDialogMode mode, cef_string_t* title, cef_string_t* default_file_name, cef_string_list* accept_types, cef_run_file_dialog_callback_t* callback)
{
run_file_dialog_delegate d;
var p = self->_run_file_dialog;
if (p == _pd) { d = _dd; }
else
{
d = (run_file_dialog_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(run_file_dialog_delegate));
if (_pd == IntPtr.Zero) { _dd = d; _pd = p; }
}
d(self, mode, title, default_file_name, accept_types, callback);
}
示例13: set_zoom_level
public static void set_zoom_level(cef_browser_host_t* self, double zoomLevel)
{
set_zoom_level_delegate d;
var p = self->_set_zoom_level;
if (p == _pc) { d = _dc; }
else
{
d = (set_zoom_level_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_zoom_level_delegate));
if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
}
d(self, zoomLevel);
}
示例14: get_zoom_level
public static double get_zoom_level(cef_browser_host_t* self)
{
get_zoom_level_delegate d;
var p = self->_get_zoom_level;
if (p == _pb) { d = _db; }
else
{
d = (get_zoom_level_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_zoom_level_delegate));
if (_pb == IntPtr.Zero) { _db = d; _pb = p; }
}
return d(self);
}
示例15: get_request_context
public static cef_request_context_t* get_request_context(cef_browser_host_t* self)
{
get_request_context_delegate d;
var p = self->_get_request_context;
if (p == _pa) { d = _da; }
else
{
d = (get_request_context_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_request_context_delegate));
if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
}
return d(self);
}