Remove NativeWindow's webview APIs

This commit is contained in:
Cheng Zhao 2018-03-06 15:10:44 +09:00
parent 5a4c2fb61d
commit eea4e60b73
3 changed files with 4 additions and 21 deletions

View file

@ -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) {