Remove NativeWindow::FromWebContents

This commit is contained in:
Cheng Zhao 2018-03-06 15:18:45 +09:00
parent eea4e60b73
commit 702f1631a3
4 changed files with 11 additions and 19 deletions

View file

@ -76,16 +76,6 @@ NativeWindow::~NativeWindow() {
NotifyWindowClosed();
}
// static
NativeWindow* NativeWindow::FromWebContents(
content::WebContents* web_contents) {
for (const auto& window : WindowList::GetWindows()) {
if (window->web_contents() == web_contents)
return window;
}
return nullptr;
}
void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
// Setup window from options.
int x = -1, y = -1;