Don't cast manually for NativeWindow*

This commit is contained in:
Samuel Attard 2018-02-27 16:13:17 +11:00
parent 5336b4a89c
commit b722150d87
2 changed files with 2 additions and 7 deletions

View file

@ -1082,12 +1082,7 @@ void BrowserWindow::ToggleTabBar() {
window_->ToggleTabBar();
}
void BrowserWindow::AddTabbedWindow(mate::Arguments* args) {
NativeWindow* window;
if (!args->GetNext(&window)) {
args->ThrowError("Insert good error message here");
return;
}
void BrowserWindow::AddTabbedWindow(NativeWindow* window, mate::Arguments* args) {
window_->AddTabbedWindow(window, args);
}

View file

@ -243,7 +243,7 @@ class BrowserWindow : public mate::TrackableObject<BrowserWindow>,
void MergeAllWindows();
void MoveTabToNewWindow();
void ToggleTabBar();
void AddTabbedWindow(mate::Arguments* args);
void AddTabbedWindow(NativeWindow* window, mate::Arguments* args);
void SetVibrancy(mate::Arguments* args);
void SetTouchBar(const std::vector<mate::PersistentDictionary>& items);