зеркало из https://github.com/electron/electron.git
Don't cast manually for NativeWindow*
This commit is contained in:
Родитель
5336b4a89c
Коммит
b722150d87
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче