File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
- 1315
2
- Changed: lushnikov @chromium.org Thu Jul 23 09:56:07 PDT 2020
1
+ 1316
2
+ Changed: yurys @chromium.org Thu Jul 23 16:12:30 PDT 2020
Original file line number Diff line number Diff line change @@ -368,6 +368,11 @@ - (void)webViewDidClose:(WKWebView *)webView {
368
368
}
369
369
}
370
370
371
+ - (void )_webView : (WKWebView *)webView getWindowFrameWithCompletionHandler : (void (^)(CGRect))completionHandler
372
+ {
373
+ completionHandler ([webView.window frame ]);
374
+ }
375
+
371
376
- (void )webView : (WKWebView *)webView runJavaScriptAlertPanelWithMessage : (NSString *)message initiatedByFrame : (WKFrameInfo *)frame completionHandler : (void (^)(void ))completionHandler
372
377
{
373
378
WebViewDialog* dialog = [[WebViewDialog alloc ] autorelease ];
Original file line number Diff line number Diff line change @@ -421,6 +421,11 @@ - (void)webViewDidClose:(WKWebView *)webView {
421
421
[self .window close ];
422
422
}
423
423
424
+ - (void )_webView : (WKWebView *)webView getWindowFrameWithCompletionHandler : (void (^)(CGRect))completionHandler
425
+ {
426
+ completionHandler ([self .window frame ]);
427
+ }
428
+
424
429
#define DefaultMinimumZoomFactor (.5 )
425
430
#define DefaultMaximumZoomFactor (3.0 )
426
431
#define DefaultZoomFactorRatio (1.2 )
You can’t perform that action at this time.
0 commit comments