Exemplo n.º 1
0
 /// <summary>
 /// The on load start.
 /// </summary>
 /// <param name="browser">
 /// The browser.
 /// </param>
 /// <param name="frame">
 /// The frame.
 /// </param>
 /// <param name="transitionType">
 /// The transition type.
 /// </param>
 protected override void OnLoadStart(CefBrowser browser, CefFrame frame, CefTransitionType transitionType)
 {
     mBrowser.InvokeAsyncIfPossible(() => mBrowser.OnFrameLoadStart(new FrameLoadStartEventArgs(frame)));
 }
Exemplo n.º 2
0
 protected override void OnLoadStart(CefBrowser browser, CefFrame frame, CefTransitionType transitionType)
 {
     _core.InvokeIfRequired(() => _core.OnLoadStart(new LoadStartEventArgs(frame)));
 }
 protected override void OnLoadStart(CefBrowser browser, CefFrame frame, CefTransitionType transitionType)
 {
 }
Exemplo n.º 4
0
 protected override void OnLoadStart(CefBrowser browser, CefFrame frame, CefTransitionType transitionType)
 {
     //System.Windows.Forms.MessageBox.Show("1");
     //state++;
 }
Exemplo n.º 5
0
 protected internal unsafe override void OnLoadStart(CefBrowser browser, CefFrame frame, CefTransitionType transitionType)
 {
     _implementation.OnLoadStart(browser, frame, transitionType);
 }
Exemplo n.º 6
0
        // void (*)(_cef_load_handler_t* self, _cef_browser_t* browser, _cef_frame_t* frame, cef_transition_type_t transition_type)*
        private static unsafe void OnLoadStartImpl(cef_load_handler_t *self, cef_browser_t *browser, cef_frame_t *frame, CefTransitionType transition_type)
        {
            var instance = GetInstance((IntPtr)self) as CefLoadHandler;

            if (instance == null || ((ICefLoadHandlerPrivate)instance).AvoidOnLoadStart())
            {
                ReleaseIfNonNull((cef_base_ref_counted_t *)browser);
                ReleaseIfNonNull((cef_base_ref_counted_t *)frame);
                return;
            }
            instance.OnLoadStart(CefBrowser.Wrap(CefBrowser.Create, browser), CefFrame.Wrap(CefFrame.Create, frame), transition_type);
        }
Exemplo n.º 7
0
 /// <summary>
 /// Called after a navigation has been committed and before the browser begins
 /// loading contents in the frame. The |frame| value will never be NULL -- call
 /// the is_main() function to check if this frame is the main frame.
 /// |transition_type| provides information about the source of the navigation
 /// and an accurate value is only available in the browser process. Multiple
 /// frames may be loading at the same time. Sub-frames may start or continue
 /// loading after the main frame load has ended. This function will not be
 /// called for same page navigations (fragments, history state, etc.) or for
 /// navigations that fail or are canceled before commit. For notification of
 /// overall browser load status use OnLoadingStateChange instead.
 /// </summary>
 protected internal unsafe virtual void OnLoadStart(CefBrowser browser, CefFrame frame, CefTransitionType transitionType)
 {
 }
Exemplo n.º 8
0
        internal protected virtual void OnLoadStart(CefBrowser browser, CefFrame frame, CefTransitionType transitionType)
        {
#if DEBUG
            if (!BrowserObject.IsSame(browser))
            {
                throw new InvalidOperationException();
            }
#endif
        }
Exemplo n.º 9
0
        private void on_load_start(cef_load_handler_t *self, cef_browser_t *browser, cef_frame_t *frame, CefTransitionType transition_type)
        {
            CheckSelf(self);

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

            OnLoadStart(m_browser, m_frame, transition_type);
        }