Пример #1
0
 public static void show_dev_tools(cef_browser_host_t* self, cef_window_info_t* windowInfo, cef_client_t* client, cef_browser_settings_t* settings, cef_point_t* inspect_element_at)
 {
     show_dev_tools_delegate d;
     var p = self->_show_dev_tools;
     if (p == _p12) { d = _d12; }
     else
     {
         d = (show_dev_tools_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(show_dev_tools_delegate));
         if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; }
     }
     d(self, windowInfo, client, settings, inspect_element_at);
 }
Пример #2
0
 /// <summary>
 /// Open developer tools in its own window. If |inspect_element_at| is non-
 /// empty the element at the specified (x,y) location will be inspected.
 /// </summary>
 public void ShowDevTools(CefWindowInfo windowInfo, CefClient client, CefBrowserSettings browserSettings, CefPoint inspectElementAt)
 {
     var n_inspectElementAt = new cef_point_t(inspectElementAt.X, inspectElementAt.Y);
     cef_browser_host_t.show_dev_tools(_self, windowInfo.ToNative(), client.ToNative(), browserSettings.ToNative(),
         &n_inspectElementAt);
 }