OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/corewm/tooltip_controller.h" | 5 #include "ui/views/corewm/tooltip_controller.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "ui/aura/client/cursor_client.h" | 8 #include "ui/aura/client/cursor_client.h" |
9 #include "ui/aura/client/screen_position_client.h" | 9 #include "ui/aura/client/screen_position_client.h" |
10 #include "ui/aura/client/tooltip_client.h" | 10 #include "ui/aura/client/tooltip_client.h" |
11 #include "ui/aura/env.h" | 11 #include "ui/aura/env.h" |
12 #include "ui/aura/root_window.h" | |
13 #include "ui/aura/test/aura_test_base.h" | 12 #include "ui/aura/test/aura_test_base.h" |
14 #include "ui/aura/test/event_generator.h" | 13 #include "ui/aura/test/event_generator.h" |
15 #include "ui/aura/test/test_screen.h" | 14 #include "ui/aura/test/test_screen.h" |
16 #include "ui/aura/test/test_window_delegate.h" | 15 #include "ui/aura/test/test_window_delegate.h" |
17 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
| 17 #include "ui/aura/window_event_dispatcher.h" |
18 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
19 #include "ui/gfx/font.h" | 19 #include "ui/gfx/font.h" |
20 #include "ui/gfx/point.h" | 20 #include "ui/gfx/point.h" |
21 #include "ui/gfx/screen.h" | 21 #include "ui/gfx/screen.h" |
22 #include "ui/gfx/screen_type_delegate.h" | 22 #include "ui/gfx/screen_type_delegate.h" |
23 #include "ui/gfx/text_elider.h" | 23 #include "ui/gfx/text_elider.h" |
24 #include "ui/views/corewm/tooltip_aura.h" | 24 #include "ui/views/corewm/tooltip_aura.h" |
25 #include "ui/views/corewm/tooltip_controller_test_helper.h" | 25 #include "ui/views/corewm/tooltip_controller_test_helper.h" |
26 #include "ui/views/corewm/wm_state.h" | 26 #include "ui/views/corewm/wm_state.h" |
27 #include "ui/views/view.h" | 27 #include "ui/views/view.h" |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 // the tooltip window is closed. | 758 // the tooltip window is closed. |
759 ui::CancelModeEvent event; | 759 ui::CancelModeEvent event; |
760 helper_->controller()->OnCancelMode(&event); | 760 helper_->controller()->OnCancelMode(&event); |
761 EXPECT_FALSE(helper_->IsTooltipVisible()); | 761 EXPECT_FALSE(helper_->IsTooltipVisible()); |
762 EXPECT_TRUE(helper_->GetTooltipWindow() == NULL); | 762 EXPECT_TRUE(helper_->GetTooltipWindow() == NULL); |
763 } | 763 } |
764 | 764 |
765 } // namespace test | 765 } // namespace test |
766 } // namespace corewm | 766 } // namespace corewm |
767 } // namespace views | 767 } // namespace views |
OLD | NEW |