| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "ash/common/shelf/shelf_tooltip_manager.h" | 5 #include "ash/common/shelf/shelf_tooltip_manager.h" |
| 6 | 6 |
| 7 #include "ash/common/shelf/app_list_button.h" | 7 #include "ash/common/shelf/app_list_button.h" |
| 8 #include "ash/common/shelf/shelf_model.h" | 8 #include "ash/common/shelf/shelf_model.h" |
| 9 #include "ash/common/shelf/shelf_view.h" |
| 9 #include "ash/common/shelf/wm_shelf.h" | 10 #include "ash/common/shelf/wm_shelf.h" |
| 10 #include "ash/shelf/shelf_view.h" | |
| 11 #include "ash/test/ash_test_base.h" | 11 #include "ash/test/ash_test_base.h" |
| 12 #include "ash/test/shelf_view_test_api.h" | 12 #include "ash/test/shelf_view_test_api.h" |
| 13 #include "ash/test/test_shelf_item_delegate.h" | 13 #include "ash/test/test_shelf_item_delegate.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "ui/events/event_constants.h" | 15 #include "ui/events/event_constants.h" |
| 16 #include "ui/events/test/event_generator.h" | 16 #include "ui/events/test/event_generator.h" |
| 17 #include "ui/views/bubble/bubble_dialog_delegate.h" | 17 #include "ui/views/bubble/bubble_dialog_delegate.h" |
| 18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
| 19 | 19 |
| 20 namespace ash { | 20 namespace ash { |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 // Should not hide for key events. | 212 // Should not hide for key events. |
| 213 tooltip_manager_->ShowTooltip(shelf_view_->GetAppListButton()); | 213 tooltip_manager_->ShowTooltip(shelf_view_->GetAppListButton()); |
| 214 ASSERT_TRUE(tooltip_manager_->IsVisible()); | 214 ASSERT_TRUE(tooltip_manager_->IsVisible()); |
| 215 generator.PressKey(ui::VKEY_A, ui::EF_NONE); | 215 generator.PressKey(ui::VKEY_A, ui::EF_NONE); |
| 216 EXPECT_TRUE(tooltip_manager_->IsVisible()); | 216 EXPECT_TRUE(tooltip_manager_->IsVisible()); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace test | 219 } // namespace test |
| 220 } // namespace ash | 220 } // namespace ash |
| OLD | NEW |