| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/views/widget/android/native_widget_android.h" | 5 #include "ui/views/widget/android/native_widget_android.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 9 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 10 #include "third_party/skia/include/core/SkRegion.h" | 11 #include "third_party/skia/include/core/SkRegion.h" |
| 11 #include "ui/aura/client/aura_constants.h" | 12 #include "ui/aura/client/aura_constants.h" |
| 12 #include "ui/aura/client/cursor_client.h" | 13 #include "ui/aura/client/cursor_client.h" |
| 13 #include "ui/aura/client/default_capture_client.h" | 14 #include "ui/aura/client/default_capture_client.h" |
| 14 #include "ui/aura/client/focus_client.h" | 15 #include "ui/aura/client/focus_client.h" |
| 15 #include "ui/aura/client/screen_position_client.h" | 16 #include "ui/aura/client/screen_position_client.h" |
| 16 #include "ui/aura/client/window_tree_client.h" | 17 #include "ui/aura/client/window_tree_client.h" |
| 17 #include "ui/aura/env.h" | 18 #include "ui/aura/env.h" |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 return false; | 830 return false; |
| 830 } | 831 } |
| 831 | 832 |
| 832 void NativeWidgetAndroid::SetInitialFocus(ui::WindowShowState show_state) { | 833 void NativeWidgetAndroid::SetInitialFocus(ui::WindowShowState show_state) { |
| 833 // The window does not get keyboard messages unless we focus it. | 834 // The window does not get keyboard messages unless we focus it. |
| 834 if (!GetWidget()->SetInitialFocus(show_state)) | 835 if (!GetWidget()->SetInitialFocus(show_state)) |
| 835 window_->Focus(); | 836 window_->Focus(); |
| 836 } | 837 } |
| 837 | 838 |
| 838 } // namespace views | 839 } // namespace views |
| OLD | NEW |