Remove NativeWindow's webview APIs
This commit is contained in:
parent
5a4c2fb61d
commit
eea4e60b73
3 changed files with 4 additions and 21 deletions
|
@ -803,15 +803,16 @@ double BrowserWindow::GetOpacity() {
|
|||
}
|
||||
|
||||
void BrowserWindow::FocusOnWebView() {
|
||||
window_->FocusOnWebView();
|
||||
web_contents()->GetRenderViewHost()->GetWidget()->Focus();
|
||||
}
|
||||
|
||||
void BrowserWindow::BlurWebView() {
|
||||
window_->BlurWebView();
|
||||
web_contents()->GetRenderViewHost()->GetWidget()->Blur();
|
||||
}
|
||||
|
||||
bool BrowserWindow::IsWebViewFocused() {
|
||||
return window_->IsWebViewFocused();
|
||||
auto host_view = web_contents()->GetRenderViewHost()->GetWidget()->GetView();
|
||||
return host_view && host_view->HasFocus();
|
||||
}
|
||||
|
||||
void BrowserWindow::SetRepresentedFilename(const std::string& filename) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue