| 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.h" | 5 #include "ash/shelf/shelf.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/shelf/shelf_button.h" | 9 #include "ash/shelf/shelf_button.h" |
| 10 #include "ash/shelf/shelf_item_delegate_manager.h" | 10 #include "ash/shelf/shelf_item_delegate_manager.h" |
| 11 #include "ash/shelf/shelf_model.h" | 11 #include "ash/shelf/shelf_model.h" |
| 12 #include "ash/shelf/shelf_view.h" | 12 #include "ash/shelf/shelf_view.h" |
| 13 #include "ash/shelf/shelf_widget.h" | 13 #include "ash/shelf/shelf_widget.h" |
| 14 #include "ash/shell.h" | 14 #include "ash/shell.h" |
| 15 #include "ash/test/ash_test_base.h" | 15 #include "ash/test/ash_test_base.h" |
| 16 #include "ash/test/shelf_test_api.h" | 16 #include "ash/test/shelf_test_api.h" |
| 17 #include "ash/test/shelf_view_test_api.h" | 17 #include "ash/test/shelf_view_test_api.h" |
| 18 #include "ash/test/test_shelf_item_delegate.h" | 18 #include "ash/test/test_shelf_item_delegate.h" |
| 19 #include "ash/wm/window_util.h" | 19 #include "ash/wm/window_util.h" |
| 20 #include "ui/aura/window_event_dispatcher.h" | 20 #include "ui/aura/window_event_dispatcher.h" |
| 21 #include "ui/gfx/display.h" | |
| 22 #include "ui/gfx/screen.h" | |
| 23 #include "ui/views/view.h" | 21 #include "ui/views/view.h" |
| 24 #include "ui/views/widget/widget.h" | 22 #include "ui/views/widget/widget.h" |
| 25 | 23 |
| 26 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 27 #include "base/win/windows_version.h" | 25 #include "base/win/windows_version.h" |
| 28 #endif | 26 #endif |
| 29 | 27 |
| 30 using ash::ShelfView; | 28 using ash::ShelfView; |
| 31 using ash::ShelfButton; | 29 using ash::ShelfButton; |
| 32 | 30 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 154 |
| 157 // Removes the first item in main shelf view. | 155 // Removes the first item in main shelf view. |
| 158 shelf_model()->RemoveItemAt(shelf_model()->ItemIndexByID(first_item_id)); | 156 shelf_model()->RemoveItemAt(shelf_model()->ItemIndexByID(first_item_id)); |
| 159 | 157 |
| 160 // Waits for all transitions to finish and there should be no crash. | 158 // Waits for all transitions to finish and there should be no crash. |
| 161 test_api()->RunMessageLoopUntilAnimationsDone(); | 159 test_api()->RunMessageLoopUntilAnimationsDone(); |
| 162 EXPECT_FALSE(shelf()->IsShowingOverflowBubble()); | 160 EXPECT_FALSE(shelf()->IsShowingOverflowBubble()); |
| 163 } | 161 } |
| 164 | 162 |
| 165 } // namespace ash | 163 } // namespace ash |
| OLD | NEW |