Skip to content
API Documentation
BastionGuard™
SecurePopupWindowDelegate Class Reference
Inheritance diagram for SecurePopupWindowDelegate:

Public Member Functions

 SecurePopupWindowDelegate (CefRefPtr< CefBrowserView > view)
void OnWindowCreated (CefRefPtr< CefWindow > window) override
void OnWindowDestroyed (CefRefPtr< CefWindow >) override
 IMPLEMENT_REFCOUNTING (SecurePopupWindowDelegate)

Private Attributes

CefRefPtr< CefBrowserView > view_

Detailed Description

Definition at line 462 of file SecureBrowser.cpp.

Constructor & Destructor Documentation

◆ SecurePopupWindowDelegate()

SecurePopupWindowDelegate::SecurePopupWindowDelegate ( CefRefPtr< CefBrowserView > view)
inlineexplicit

Definition at line 464 of file SecureBrowser.cpp.

465 : view_(view) {}
CefRefPtr< CefBrowserView > view_

References view_.

Referenced by IMPLEMENT_REFCOUNTING(), and SecureBrowserViewDelegate::OnPopupBrowserViewCreated().

Member Function Documentation

◆ IMPLEMENT_REFCOUNTING()

SecurePopupWindowDelegate::IMPLEMENT_REFCOUNTING ( SecurePopupWindowDelegate )

◆ OnWindowCreated()

void SecurePopupWindowDelegate::OnWindowCreated ( CefRefPtr< CefWindow > window)
inlineoverride

Definition at line 467 of file SecureBrowser.cpp.

467 {
468 CEF_REQUIRE_UI_THREAD();
469 if (!view_) return;
470
471 window->AddChildView(view_);
472 window->SetBounds(CefRect(160, 120, 1000, 720));
473 view_->SetBounds(CefRect(0, 0, 1000, 720));
474 window->SetTitle("BastionGuard Secure Browser");
475 window->Show();
476 view_->RequestFocus();
477
478 std::cout << _("[SecureBrowser] 🪟 Popup CEF mostrato nella sessione sicura.\n");
479 }
#define _(s)

References _, and view_.

◆ OnWindowDestroyed()

void SecurePopupWindowDelegate::OnWindowDestroyed ( CefRefPtr< CefWindow > )
inlineoverride

Definition at line 481 of file SecureBrowser.cpp.

481 {
482 CEF_REQUIRE_UI_THREAD();
483 // Non uscire dal message loop quando si chiude solo il popup.
484 // SimpleHandler::OnBeforeClose() mantiene il conteggio dei browser.
485 view_ = nullptr;
486 }

References view_.

Member Data Documentation

◆ view_

CefRefPtr<CefBrowserView> SecurePopupWindowDelegate::view_
private

The documentation for this class was generated from the following file: