OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/launcher/launcher_tooltip_manager.h" | 5 #include "ash/launcher/launcher_tooltip_manager.h" |
6 | 6 |
7 #include "ash/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
8 #include "ash/shelf/shelf_layout_manager.h" | 8 #include "ash/shelf/shelf_layout_manager.h" |
9 #include "ash/shelf/shelf_widget.h" | 9 #include "ash/shelf/shelf_widget.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
11 #include "ash/shell_window_ids.h" | 11 #include "ash/shell_window_ids.h" |
12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
13 #include "ash/wm/window_util.h" | 13 #include "ash/wm/window_util.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "base/time.h" | 15 #include "base/time/time.h" |
16 #include "ui/aura/root_window.h" | 16 #include "ui/aura/root_window.h" |
17 #include "ui/base/events/event.h" | 17 #include "ui/base/events/event.h" |
18 #include "ui/base/events/event_constants.h" | 18 #include "ui/base/events/event_constants.h" |
19 #include "ui/base/events/event_handler.h" | 19 #include "ui/base/events/event_handler.h" |
20 #include "ui/base/keycodes/keyboard_codes.h" | 20 #include "ui/base/keycodes/keyboard_codes.h" |
21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 void SetEventTarget(ui::EventTarget* target, | 25 void SetEventTarget(ui::EventTarget* target, |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 // Should hide if the mouse is out of the tooltip. | 240 // Should hide if the mouse is out of the tooltip. |
241 test_api.set_location(tooltip_rect.origin() + gfx::Vector2d(-1, -1)); | 241 test_api.set_location(tooltip_rect.origin() + gfx::Vector2d(-1, -1)); |
242 event_handler->OnMouseEvent(&mouse_event); | 242 event_handler->OnMouseEvent(&mouse_event); |
243 EXPECT_FALSE(mouse_event.handled()); | 243 EXPECT_FALSE(mouse_event.handled()); |
244 RunAllPendingInMessageLoop(); | 244 RunAllPendingInMessageLoop(); |
245 EXPECT_FALSE(TooltipIsVisible()); | 245 EXPECT_FALSE(TooltipIsVisible()); |
246 } | 246 } |
247 | 247 |
248 } // namespace test | 248 } // namespace test |
249 } // namespace ash | 249 } // namespace ash |
OLD | NEW |