Пример #1
0
        private void on_print_settings(cef_print_handler_t *self, cef_print_settings_t *settings, int get_defaults)
        {
            CheckSelf(self);

            var m_settings = CefPrintSettings.FromNative(settings);

            OnPrintSettings(m_settings, get_defaults != 0);
            m_settings.Dispose();
        }
 /// <summary>
 /// Returns a writable copy of this object.
 /// </summary>
 public CefPrintSettings Copy()
 {
     return(CefPrintSettings.FromNative(
                cef_print_settings_t.copy(_self)
                ));
 }
 /// <summary>
 /// Create a new CefPrintSettings object.
 /// </summary>
 public static CefPrintSettings Create()
 {
     return(CefPrintSettings.FromNative(
                cef_print_settings_t.create()
                ));
 }
 /// <summary>
 /// Continue printing with the specified |settings|.
 /// </summary>
 public void Continue(CefPrintSettings settings)
 {
     cef_print_dialog_callback_t.cont(_self, settings.ToNative());
 }
Пример #5
0
 /// <summary>
 /// Synchronize |settings| with client state. If |get_defaults| is true then
 /// populate |settings| with the default print settings. Do not keep a
 /// reference to |settings| outside of this callback.
 /// </summary>
 protected abstract void OnPrintSettings(CefPrintSettings settings, bool getDefaults);