@@ -2,32 +2,32 @@ use cef::rc::{Rc, RcImpl};
22use cef:: sys:: { _cef_life_span_handler_t, cef_base_ref_counted_t} ;
33use cef:: { ImplLifeSpanHandler , WrapLifeSpanHandler } ;
44
5- pub ( crate ) struct BrowserProcessLifeSpanHandlerImpl {
5+ pub ( crate ) struct LifeSpanHandlerImpl {
66 object : * mut RcImpl < _cef_life_span_handler_t , Self > ,
77}
8- impl BrowserProcessLifeSpanHandlerImpl {
8+ impl LifeSpanHandlerImpl {
99 pub ( crate ) fn new ( ) -> Self {
1010 Self { object : std:: ptr:: null_mut ( ) }
1111 }
1212}
1313
14- impl ImplLifeSpanHandler for BrowserProcessLifeSpanHandlerImpl {
14+ impl ImplLifeSpanHandler for LifeSpanHandlerImpl {
1515 fn on_before_popup (
1616 & self ,
1717 _browser : Option < & mut cef:: Browser > ,
1818 _frame : Option < & mut cef:: Frame > ,
19- _popup_id : :: std:: os :: raw :: c_int ,
19+ _popup_id : std:: ffi :: c_int ,
2020 target_url : Option < & cef:: CefString > ,
2121 _target_frame_name : Option < & cef:: CefString > ,
2222 _target_disposition : cef:: WindowOpenDisposition ,
23- _user_gesture : :: std:: os :: raw :: c_int ,
23+ _user_gesture : std:: ffi :: c_int ,
2424 _popup_features : Option < & cef:: PopupFeatures > ,
2525 _window_info : Option < & mut cef:: WindowInfo > ,
2626 _client : Option < & mut Option < cef:: Client > > ,
2727 _settings : Option < & mut cef:: BrowserSettings > ,
2828 _extra_info : Option < & mut Option < cef:: DictionaryValue > > ,
29- _no_javascript_access : Option < & mut :: std:: os :: raw :: c_int > ,
30- ) -> :: std:: os :: raw :: c_int {
29+ _no_javascript_access : Option < & mut std:: ffi :: c_int > ,
30+ ) -> std:: ffi :: c_int {
3131 let target = target_url. map ( |url| url. to_string ( ) ) . unwrap_or ( "unknown" . to_string ( ) ) ;
3232 tracing:: error!( "Browser tried to open a popup at URL: {}" , target) ;
3333
@@ -40,7 +40,7 @@ impl ImplLifeSpanHandler for BrowserProcessLifeSpanHandlerImpl {
4040 }
4141}
4242
43- impl Clone for BrowserProcessLifeSpanHandlerImpl {
43+ impl Clone for LifeSpanHandlerImpl {
4444 fn clone ( & self ) -> Self {
4545 unsafe {
4646 let rc_impl = & mut * self . object ;
@@ -49,15 +49,15 @@ impl Clone for BrowserProcessLifeSpanHandlerImpl {
4949 Self { object : self . object }
5050 }
5151}
52- impl Rc for BrowserProcessLifeSpanHandlerImpl {
52+ impl Rc for LifeSpanHandlerImpl {
5353 fn as_base ( & self ) -> & cef_base_ref_counted_t {
5454 unsafe {
5555 let base = & * self . object ;
5656 std:: mem:: transmute ( & base. cef_object )
5757 }
5858 }
5959}
60- impl WrapLifeSpanHandler for BrowserProcessLifeSpanHandlerImpl {
60+ impl WrapLifeSpanHandler for LifeSpanHandlerImpl {
6161 fn wrap_rc ( & mut self , object : * mut RcImpl < _cef_life_span_handler_t , Self > ) {
6262 self . object = object;
6363 }
0 commit comments