Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Win][MiniBrowser] Remove gMainWindow global variable
https://bugs.webkit.org/show_bug.cgi?id=186378 Reviewed by Ryosuke Niwa. I'm going to support multiple MainWindow in Bug 186263. It should not be assumed that MainWindow has only one instance. gMainWindow is used only in DisplayAuthDialog. * MiniBrowser/win/Common.cpp: (authDialogProc): Use DWLP_USER to store the dialog data. (displayAuthDialog): Moved and renamed from MainWindow::displayAuthDialog. Use DialogBoxParam instead of DialogBox to pass a data pointer. Do not return S_OK if DialogBoxParam returns -1. Take a HWND argument as the parent window. (DisplayAuthDialog): Deleted. * MiniBrowser/win/Common.h: * MiniBrowser/win/MainWindow.cpp: (authDialogProc): Moved to Common.cpp. (MainWindow::displayAuthDialog): Ditto. * MiniBrowser/win/MainWindow.h: * MiniBrowser/win/ResourceLoadDelegate.cpp: (ResourceLoadDelegate::didReceiveAuthenticationChallenge): * MiniBrowser/win/WinMain.cpp: (wWinMain): Added a local variable mainWindow instead of using gMainWindow. Canonical link: https://commits.webkit.org/201749@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232574 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
83 additions
and 63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -39,7 +39,6 @@ class MainWindow { | ||
MiniBrowser* browserWindow() const { return m_browserWindow.get(); } | ||
|
||
void loadURL(BSTR url); | ||
|
||
private: | ||
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters