| Index: views/widget/native_widget_gtk.cc
|
| diff --git a/views/widget/native_widget_gtk.cc b/views/widget/native_widget_gtk.cc
|
| index a16034255e7d16cda9166d64fec3e812d1f0cadd..a3cc021dac13e2e71ff9663b90403ae2ff06946d 100644
|
| --- a/views/widget/native_widget_gtk.cc
|
| +++ b/views/widget/native_widget_gtk.cc
|
| @@ -1206,15 +1206,6 @@ void NativeWidgetGtk::Hide() {
|
| gtk_widget_hide(widget_);
|
| if (widget_->window)
|
| gdk_window_lower(widget_->window);
|
| - // We're not calling OnNativeWidgetVisibilityChanged because it
|
| - // breaks the ability to refocus to FindBar. NativeControlGtk
|
| - // detaches the underlying gtk widget for optimization purpose
|
| - // when it becomes invisible, which in turn breaks SetNativeFocus
|
| - // because there is no gtk attached to NativeControlGtk. I'm not
|
| - // fixing that part because
|
| - // a) This is views/gtk only issue, which will be gone soon.
|
| - // b) Alternative fix, which we can modify animator to show it
|
| - // immediately, won't be necessary for non gtk implementation.
|
| }
|
| }
|
|
|
| @@ -1825,6 +1816,7 @@ void NativeWidgetGtk::OnDestroyed(GObject *where_the_object_was) {
|
| }
|
|
|
| void NativeWidgetGtk::OnShow(GtkWidget* widget) {
|
| + delegate_->OnNativeWidgetVisibilityChanged(true);
|
| }
|
|
|
| void NativeWidgetGtk::OnMap(GtkWidget* widget) {
|
| @@ -1841,6 +1833,7 @@ void NativeWidgetGtk::OnMap(GtkWidget* widget) {
|
| }
|
|
|
| void NativeWidgetGtk::OnHide(GtkWidget* widget) {
|
| + delegate_->OnNativeWidgetVisibilityChanged(false);
|
| }
|
|
|
| gboolean NativeWidgetGtk::OnWindowStateEvent(GtkWidget* widget,
|
|
|