| 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/common/system/ime/tray_ime_chromeos.h" | 5 #include "ash/common/system/ime/tray_ime_chromeos.h" |
| 6 | 6 |
| 7 #include "ash/common/accessibility_delegate.h" | 7 #include "ash/common/accessibility_delegate.h" |
| 8 #include "ash/common/accessibility_types.h" | 8 #include "ash/common/accessibility_types.h" |
| 9 #include "ash/common/system/tray/system_tray_notifier.h" |
| 9 #include "ash/common/system/tray/tray_details_view.h" | 10 #include "ash/common/system/tray/tray_details_view.h" |
| 10 #include "ash/common/system/tray/wm_system_tray_notifier.h" | |
| 11 #include "ash/common/wm_shell.h" | 11 #include "ash/common/wm_shell.h" |
| 12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
| 13 #include "ash/test/virtual_keyboard_test_helper.h" | 13 #include "ash/test/virtual_keyboard_test_helper.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "ui/keyboard/keyboard_util.h" | 15 #include "ui/keyboard/keyboard_util.h" |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | 18 |
| 19 class TrayIMETest : public test::AshTestBase { | 19 class TrayIMETest : public test::AshTestBase { |
| 20 public: | 20 public: |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 toggle = GetScrollChildView(0); | 132 toggle = GetScrollChildView(0); |
| 133 // Clicking again should disable the keyboard. | 133 // Clicking again should disable the keyboard. |
| 134 tap = ui::GestureEvent(0, 0, 0, base::TimeTicks(), | 134 tap = ui::GestureEvent(0, 0, 0, base::TimeTicks(), |
| 135 ui::GestureEventDetails(ui::ET_GESTURE_TAP)); | 135 ui::GestureEventDetails(ui::ET_GESTURE_TAP)); |
| 136 toggle->OnGestureEvent(&tap); | 136 toggle->OnGestureEvent(&tap); |
| 137 EXPECT_FALSE(keyboard::IsKeyboardEnabled()); | 137 EXPECT_FALSE(keyboard::IsKeyboardEnabled()); |
| 138 EXPECT_TRUE(default_view()->visible()); | 138 EXPECT_TRUE(default_view()->visible()); |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace ash | 141 } // namespace ash |
| OLD | NEW |