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

@ -354,19 +354,6 @@ void NativeWindow::SetEscapeTouchBarItem(
const mate::PersistentDictionary& item) {
}
void NativeWindow::FocusOnWebView() {
web_contents()->GetRenderViewHost()->GetWidget()->Focus();
}
void NativeWindow::BlurWebView() {
web_contents()->GetRenderViewHost()->GetWidget()->Blur();
}
bool NativeWindow::IsWebViewFocused() {
auto host_view = web_contents()->GetRenderViewHost()->GetWidget()->GetView();
return host_view && host_view->HasFocus();
}
void NativeWindow::SetAutoHideMenuBar(bool auto_hide) {
}