コード例 #1
0
        /// <summary>
        /// Returns the document element with the specified ID value.
        /// </summary>
        public CefDomNode GetElementById(string id)
        {
            fixed(char *id_str = id)
            {
                var n_id = new cef_string_t(id_str, id.Length);

                return(CefDomNode.FromNativeOrNull(
                           cef_domdocument_t.get_element_by_id(_self, &n_id)
                           ));
            }
        }
コード例 #2
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();
            }
        }