| Index: views/window/window_gtk.cc
|
| diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
|
| index 8a3e7b9d7771a29b6372576ed13f3858159aa08c..16d314871de6313cdb8c6fbb69a3f60386676307 100644
|
| --- a/views/window/window_gtk.cc
|
| +++ b/views/window/window_gtk.cc
|
| @@ -366,6 +366,13 @@ gboolean WindowGtk::OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event) {
|
| return WidgetGtk::OnLeaveNotify(widget, event);
|
| }
|
|
|
| +void WindowGtk::SetInitialFocus() {
|
| + View* v = window_delegate_->GetInitiallyFocusedView();
|
| + if (v) {
|
| + v->RequestFocus();
|
| + }
|
| +}
|
| +
|
| // static
|
| WindowGtk* WindowGtk::GetWindowForNative(GtkWidget* widget) {
|
| gpointer user_data = g_object_get_data(G_OBJECT(widget), "chrome-window");
|
|
|