| 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/public/cpp/config.h" | 7 #include "ash/public/cpp/config.h" |
| 8 #include "ash/public/cpp/shelf_model.h" |
| 8 #include "ash/shelf/app_list_button.h" | 9 #include "ash/shelf/app_list_button.h" |
| 9 #include "ash/shelf/shelf.h" | 10 #include "ash/shelf/shelf.h" |
| 10 #include "ash/shelf/shelf_model.h" | |
| 11 #include "ash/shelf/shelf_view.h" | 11 #include "ash/shelf/shelf_view.h" |
| 12 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 13 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
| 14 #include "ash/test/shelf_view_test_api.h" | 14 #include "ash/test/shelf_view_test_api.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "ui/events/event_constants.h" | 16 #include "ui/events/event_constants.h" |
| 17 #include "ui/events/test/event_generator.h" | 17 #include "ui/events/test/event_generator.h" |
| 18 #include "ui/views/bubble/bubble_dialog_delegate.h" | 18 #include "ui/views/bubble/bubble_dialog_delegate.h" |
| 19 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
| 20 | 20 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 // Should not hide for key events. | 236 // Should not hide for key events. |
| 237 tooltip_manager_->ShowTooltip(shelf_view_->GetAppListButton()); | 237 tooltip_manager_->ShowTooltip(shelf_view_->GetAppListButton()); |
| 238 ASSERT_TRUE(tooltip_manager_->IsVisible()); | 238 ASSERT_TRUE(tooltip_manager_->IsVisible()); |
| 239 generator.PressKey(ui::VKEY_A, ui::EF_NONE); | 239 generator.PressKey(ui::VKEY_A, ui::EF_NONE); |
| 240 EXPECT_TRUE(tooltip_manager_->IsVisible()); | 240 EXPECT_TRUE(tooltip_manager_->IsVisible()); |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace test | 243 } // namespace test |
| 244 } // namespace ash | 244 } // namespace ash |
| OLD | NEW |