mirror of
https://github.com/Adamcake/Bolt.git
synced 2026-04-21 17:36:53 -04:00
src/browser: GetBrowserIdentifier
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user