move native-mate back into the api layer
This commit is contained in:
parent
837a2d4bbd
commit
2abc69780e
5 changed files with 11 additions and 9 deletions
|
@ -1084,7 +1084,9 @@ void BrowserWindow::ToggleTabBar() {
|
|||
|
||||
void BrowserWindow::AddTabbedWindow(NativeWindow* window,
|
||||
mate::Arguments* args) {
|
||||
window_->AddTabbedWindow(window, args);
|
||||
const bool windowAdded = window_->AddTabbedWindow(window);
|
||||
if (!windowAdded)
|
||||
args->ThrowError("AddTabbedWindow cannot be called by a window on itself");
|
||||
}
|
||||
|
||||
void BrowserWindow::SetVibrancy(mate::Arguments* args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue