OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ash/sticky_keys/sticky_keys_overlay.h" | 5 #include "ash/sticky_keys/sticky_keys_overlay.h" |
6 | 6 |
7 #include "ash/common/wm_shell.h" | 7 #include "ash/common/wm_shell.h" |
8 #include "ash/display/window_tree_host_manager.h" | 8 #include "ash/display/window_tree_host_manager.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/sticky_keys/sticky_keys_controller.h" | 10 #include "ash/sticky_keys/sticky_keys_controller.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 overlay_widget->GetNativeWindow()->GetRootWindow()); | 77 overlay_widget->GetNativeWindow()->GetRootWindow()); |
78 | 78 |
79 overlay.SetModifierKeyState(ui::EF_SHIFT_DOWN, STICKY_KEY_STATE_ENABLED); | 79 overlay.SetModifierKeyState(ui::EF_SHIFT_DOWN, STICKY_KEY_STATE_ENABLED); |
80 EXPECT_EQ(STICKY_KEY_STATE_ENABLED, | 80 EXPECT_EQ(STICKY_KEY_STATE_ENABLED, |
81 overlay.GetModifierKeyState(ui::EF_SHIFT_DOWN)); | 81 overlay.GetModifierKeyState(ui::EF_SHIFT_DOWN)); |
82 overlay.SetModifierKeyState(ui::EF_SHIFT_DOWN, STICKY_KEY_STATE_DISABLED); | 82 overlay.SetModifierKeyState(ui::EF_SHIFT_DOWN, STICKY_KEY_STATE_DISABLED); |
83 EXPECT_EQ(STICKY_KEY_STATE_DISABLED, | 83 EXPECT_EQ(STICKY_KEY_STATE_DISABLED, |
84 overlay.GetModifierKeyState(ui::EF_SHIFT_DOWN)); | 84 overlay.GetModifierKeyState(ui::EF_SHIFT_DOWN)); |
85 } | 85 } |
86 | 86 |
87 // Additional sticky key overlay tests that depend on chromeos::EventRewriter | 87 // Additional sticky key overlay tests that depend on |
88 // are now in chrome/browser/chromeos/events/event_rewriter_unittest.cc . | 88 // ui::chromeos::EventRewriter are now in |
| 89 // ui/chromeos/events/event_rewriter_unittest.cc . |
89 | 90 |
90 } // namespace ash | 91 } // namespace ash |
OLD | NEW |