Changeset 287985 in webkit
- Timestamp:
- Jan 13, 2022, 12:10:09 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
MiniBrowser/playstation/MainWindow.cpp (modified) (2 diffs)
-
MiniBrowser/playstation/MainWindow.h (modified) (1 diff)
-
MiniBrowser/playstation/main.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r287979 r287985 1 2022-01-13 Ross Kirsling <ross.kirsling@sony.com> 2 3 PlayStation MiniBrowser should accept a command-line URL argument 4 https://bugs.webkit.org/show_bug.cgi?id=235193 5 6 Reviewed by Don Olmstead. 7 8 Windows MiniBrowser can be launched from the command line with a URL argument for the initial page to load; 9 this patch allows PlayStation MiniBrowser to do similarly. 10 11 * MiniBrowser/playstation/MainWindow.cpp: 12 (MainWindow::MainWindow): 13 * MiniBrowser/playstation/MainWindow.h: 14 * MiniBrowser/playstation/main.cpp: 15 (main): 16 1 17 2022-01-13 Patrick Angle <pangle@apple.com> 2 18 -
trunk/Tools/MiniBrowser/playstation/MainWindow.cpp
r271360 r287985 42 42 using namespace toolkitten; 43 43 44 MainWindow::MainWindow( )44 MainWindow::MainWindow(const char* requestedURL) 45 45 { 46 46 IntSize size = Application::singleton().windowSize(); … … 107 107 108 108 createNewWebView(nullptr); 109 activeWebView()->loadURL( "https://webkit.org");109 activeWebView()->loadURL(requestedURL ? requestedURL : "https://webkit.org"); 110 110 } 111 111 -
trunk/Tools/MiniBrowser/playstation/MainWindow.h
r271360 r287985 36 36 class MainWindow final : public toolkitten::Widget { 37 37 public: 38 MainWindow( );38 MainWindow(const char*); 39 39 40 40 WebViewWindow* activeWebView(); -
trunk/Tools/MiniBrowser/playstation/main.cpp
r282840 r287985 77 77 }; 78 78 79 int main(int , char *[])79 int main(int argc, char *argv[]) 80 80 { 81 81 WKRunLoopInitializeMain(); … … 85 85 app.init(&applicationClient); 86 86 87 auto mainWindow = std::make_unique<MainWindow>( );87 auto mainWindow = std::make_unique<MainWindow>(argc > 1 ? argv[1] : nullptr); 88 88 mainWindow->setFocused(); 89 89 app.setRootWidget(move(mainWindow));
Note:
See TracChangeset
for help on using the changeset viewer.