Pass arguments instance through the chain in order to throw error
This commit is contained in:
parent
e84d7c0cda
commit
5336b4a89c
6 changed files with 14 additions and 8 deletions
|
@ -1082,8 +1082,13 @@ void BrowserWindow::ToggleTabBar() {
|
|||
window_->ToggleTabBar();
|
||||
}
|
||||
|
||||
void BrowserWindow::AddTabbedWindow(NativeWindow* window) {
|
||||
window_->AddTabbedWindow(window);
|
||||
void BrowserWindow::AddTabbedWindow(mate::Arguments* args) {
|
||||
NativeWindow* window;
|
||||
if (!args->GetNext(&window)) {
|
||||
args->ThrowError("Insert good error message here");
|
||||
return;
|
||||
}
|
||||
window_->AddTabbedWindow(window, args);
|
||||
}
|
||||
|
||||
void BrowserWindow::SetVibrancy(mate::Arguments* args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue