當前位置: 首頁>>代碼示例>>C#>>正文


C# Interop.cef_browser_t類代碼示例

本文整理匯總了C#中Xilium.CefGlue.Interop.cef_browser_t的典型用法代碼示例。如果您正苦於以下問題:C# cef_browser_t類的具體用法?C# cef_browser_t怎麽用?C# cef_browser_t使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


cef_browser_t類屬於Xilium.CefGlue.Interop命名空間,在下文中一共展示了cef_browser_t類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: on_render_process_terminated

        private void on_render_process_terminated(cef_load_handler_t* self, cef_browser_t* browser, CefTerminationStatus status)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);
            OnRenderProcessTerminated(m_browser, status);
        }
開發者ID:GuoMarvin,項目名稱:Xilium.CefGlue,代碼行數:7,代碼來源:CefLoadHandler.cs

示例2: on_before_popup

        private int on_before_popup(cef_life_span_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_string_t* target_url, cef_string_t* target_frame_name, cef_popup_features_t* popupFeatures, cef_window_info_t* windowInfo, cef_client_t** client, cef_browser_settings_t* settings, int* no_javascript_access)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);
            var m_frame = CefFrame.FromNative(frame);
            var m_targetUrl = cef_string_t.ToString(target_url);
            var m_targetFrameName = cef_string_t.ToString(target_frame_name);
            var m_popupFeatures = new CefPopupFeatures(popupFeatures);
            var m_windowInfo = CefWindowInfo.FromNative(windowInfo);
            var m_client = CefClient.FromNative(*client);
            var m_settings = new CefBrowserSettings(settings);
            var m_noJavascriptAccess = (*no_javascript_access) != 0;

            var o_client = m_client;
            var result = OnBeforePopup(m_browser, m_frame, m_targetUrl, m_targetFrameName, m_popupFeatures, m_windowInfo, ref m_client, m_settings, ref m_noJavascriptAccess);

            if ((object)o_client != m_client && m_client != null)
            {
                *client = m_client.ToNative();
            }

            *no_javascript_access = m_noJavascriptAccess ? 1 : 0;

            m_popupFeatures.Dispose();
            m_windowInfo.Dispose();
            m_settings.Dispose();

            return result ? 1 : 0;
        }
開發者ID:GuoMarvin,項目名稱:Xilium.CefGlue,代碼行數:30,代碼來源:CefLifeSpanHandler.cs

示例3: on_loading_state_change

        private void on_loading_state_change(cef_load_handler_t* self, cef_browser_t* browser, int isLoading, int canGoBack, int canGoForward)
        {
            CheckSelf(self);

            var mBrowser = CefBrowser.FromNative(browser);

            OnLoadingStateChange(mBrowser, isLoading != 0, canGoBack != 0, canGoForward != 0);
        }
開發者ID:whztt07,項目名稱:SDK,代碼行數:8,代碼來源:CefLoadHandler.cs

示例4: on_browser_destroyed

        private void on_browser_destroyed(cef_render_process_handler_t* self, cef_browser_t* browser)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);

            OnBrowserDestroyed(m_browser);
        }
開發者ID:rahmancam,項目名稱:ChromeWebBrowserControl,代碼行數:8,代碼來源:CefRenderProcessHandler.cs

示例5: on_after_created

        private void on_after_created(cef_life_span_handler_t* self, cef_browser_t* browser)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);

            OnAfterCreated(m_browser);
        }
開發者ID:GuoMarvin,項目名稱:Xilium.CefGlue,代碼行數:8,代碼來源:CefLifeSpanHandler.cs

示例6: on_take_focus

        private void on_take_focus(cef_focus_handler_t* self, cef_browser_t* browser, int next)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);

            OnTakeFocus(m_browser, next != 0);
        }
開發者ID:rajsite,項目名稱:lvcef,代碼行數:8,代碼來源:CefFocusHandler.cs

示例7: on_set_focus

        private int on_set_focus(cef_focus_handler_t* self, cef_browser_t* browser, CefFocusSource source)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);

            return OnSetFocus(m_browser, source) ? 1 : 0;
        }
開發者ID:rajsite,項目名稱:lvcef,代碼行數:8,代碼來源:CefFocusHandler.cs

示例8: on_dialog_closed

        private void on_dialog_closed(cef_jsdialog_handler_t* self, cef_browser_t* browser)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);

            OnDialogClosed(m_browser);
        }
開發者ID:rajsite,項目名稱:lvcef,代碼行數:8,代碼來源:CefJSDialogHandler.cs

示例9: on_reset_dialog_state

        private void on_reset_dialog_state(cef_jsdialog_handler_t* self, cef_browser_t* browser)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);

            OnResetDialogState(m_browser);
        }
開發者ID:GuoMarvin,項目名稱:Xilium.CefGlue,代碼行數:8,代碼來源:CefJSDialogHandler.cs

示例10: on_got_focus

        private void on_got_focus(cef_focus_handler_t* self, cef_browser_t* browser)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);

            OnGotFocus(m_browser);
        }
開發者ID:rajsite,項目名稱:lvcef,代碼行數:8,代碼來源:CefFocusHandler.cs

示例11: run_modal

        private int run_modal(cef_life_span_handler_t* self, cef_browser_t* browser)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);

            return RunModal(m_browser) ? 1 : 0;
        }
開發者ID:GuoMarvin,項目名稱:Xilium.CefGlue,代碼行數:8,代碼來源:CefLifeSpanHandler.cs

示例12: on_load_start

        private void on_load_start(cef_load_handler_t* self, cef_browser_t* browser, cef_frame_t* frame)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);
            var m_frame = CefFrame.FromNative(frame);

            OnLoadStart(m_browser, m_frame);
        }
開發者ID:GuoMarvin,項目名稱:Xilium.CefGlue,代碼行數:9,代碼來源:CefLoadHandler.cs

示例13: on_title_change

        private void on_title_change(cef_display_handler_t* self, cef_browser_t* browser, cef_string_t* title)
        {
            CheckSelf(self);

            var mBrowser = CefBrowser.FromNative(browser);
            var mTitle = cef_string_t.ToString(title);

            OnTitleChange(mBrowser, mTitle);
        }
開發者ID:rahmancam,項目名稱:ChromeWebBrowserControl,代碼行數:9,代碼來源:CefDisplayHandler.cs

示例14: on_load_end

        private void on_load_end(cef_load_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, int httpStatusCode)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);
            var m_frame = CefFrame.FromNative(frame);

            OnLoadEnd(m_browser, m_frame, httpStatusCode);
        }
開發者ID:whztt07,項目名稱:SDK,代碼行數:9,代碼來源:CefLoadHandler.cs

示例15: on_context_menu_dismissed

        private void on_context_menu_dismissed(cef_context_menu_handler_t* self, cef_browser_t* browser, cef_frame_t* frame)
        {
            CheckSelf(self);

            var mBrowser = CefBrowser.FromNative(browser);
            var mFrame = CefFrame.FromNative(frame);

            OnContextMenuDismissed(mBrowser, mFrame);
        }
開發者ID:rajsite,項目名稱:lvcef,代碼行數:9,代碼來源:CefContextMenuHandler.cs


注:本文中的Xilium.CefGlue.Interop.cef_browser_t類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。