| 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/shelf/shelf_tooltip_manager.h" | 5 #include "ash/shelf/shelf_tooltip_manager.h" |
| 6 | 6 |
| 7 #include "ash/common/shelf/app_list_button.h" |
| 7 #include "ash/common/shelf/shelf_item_delegate_manager.h" | 8 #include "ash/common/shelf/shelf_item_delegate_manager.h" |
| 8 #include "ash/common/shelf/shelf_model.h" | 9 #include "ash/common/shelf/shelf_model.h" |
| 9 #include "ash/shelf/app_list_button.h" | |
| 10 #include "ash/shelf/shelf_layout_manager.h" | 10 #include "ash/shelf/shelf_layout_manager.h" |
| 11 #include "ash/shelf/shelf_view.h" | 11 #include "ash/shelf/shelf_view.h" |
| 12 #include "ash/shelf/shelf_widget.h" | 12 #include "ash/shelf/shelf_widget.h" |
| 13 #include "ash/shell.h" | 13 #include "ash/shell.h" |
| 14 #include "ash/test/ash_test_base.h" | 14 #include "ash/test/ash_test_base.h" |
| 15 #include "ash/test/shelf_test_api.h" | 15 #include "ash/test/shelf_test_api.h" |
| 16 #include "ash/test/shelf_view_test_api.h" | 16 #include "ash/test/shelf_view_test_api.h" |
| 17 #include "ash/test/test_shelf_item_delegate.h" | 17 #include "ash/test/test_shelf_item_delegate.h" |
| 18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
| 19 #include "ui/events/event_constants.h" | 19 #include "ui/events/event_constants.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 221 |
| 222 // Should not hide for key events. | 222 // Should not hide for key events. |
| 223 tooltip_manager_->ShowTooltip(shelf_->GetAppListButton()); | 223 tooltip_manager_->ShowTooltip(shelf_->GetAppListButton()); |
| 224 ASSERT_TRUE(tooltip_manager_->IsVisible()); | 224 ASSERT_TRUE(tooltip_manager_->IsVisible()); |
| 225 generator.PressKey(ui::VKEY_A, ui::EF_NONE); | 225 generator.PressKey(ui::VKEY_A, ui::EF_NONE); |
| 226 EXPECT_TRUE(tooltip_manager_->IsVisible()); | 226 EXPECT_TRUE(tooltip_manager_->IsVisible()); |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace test | 229 } // namespace test |
| 230 } // namespace ash | 230 } // namespace ash |
| OLD | NEW |