// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/aura/window.h" #include "ui/views/controls/textfield/textfield.h" #include "ui/views/test/native_widget_factory.h" #include "ui/views/test/widget_activation_waiter.h" #include "ui/views/test/widget_test.h" #include "ui/views/widget/native_widget_aura.h" #include "ui/wm/core/base_focus_rules.h" #include "ui/wm/core/focus_controller.h" namespace views::test { namespace { class TestFocusRules : public wm::BaseFocusRules { … }; } // namespace NativeWidgetAuraTest; // When requesting view focus from a non-active top level widget, focus is not // instantly given. Instead, the view is firstly stored and then it is attempted // to activate the widget. If widget is currently not activatable, focus should // not be grabbed. And focus will be given/restored the next time the widget is // made active. (crbug.com/621791) TEST_F(NativeWidgetAuraTest, NonActiveWindowRequestImeFocus) { … } } // namespace views::test