src/browser: GetBrowserIdentifier

This commit is contained in:
Adam
2023-03-31 19:15:48 +01:00
parent ee6c82c7fc
commit abc9467f52
2 changed files with 7 additions and 2 deletions

View File

@@ -19,6 +19,10 @@ Browser::Window::Window(CefRefPtr<CefClient> client, Browser::Details details) {
CefWindow::CreateTopLevelWindow(this->window_delegate);
}
int Browser::Window::GetBrowserIdentifier() {
return this->window_delegate->browser_view->GetBrowser()->GetIdentifier();
}
void Browser::Window::Close() {
this->window_delegate->Close();
this->window_delegate = nullptr;

View File

@@ -12,8 +12,9 @@ namespace Browser {
struct Window {
Window(CefRefPtr<CefClient> client, Details);
void Close();
private: CefRefPtr<WindowDelegate> window_delegate;
int GetBrowserIdentifier();
CefRefPtr<WindowDelegate> window_delegate;
};
}