| 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/system/tray/tray_details_view.h" | 5 #include "ash/system/tray/tray_details_view.h" |
| 6 | 6 |
| 7 #include "ash/common/system/tray/system_tray_item.h" |
| 7 #include "ash/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
| 8 #include "ash/shelf/shelf_widget.h" | 9 #include "ash/shelf/shelf_widget.h" |
| 9 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 10 #include "ash/system/status_area_widget.h" | 11 #include "ash/system/status_area_widget.h" |
| 11 #include "ash/system/tray/hover_highlight_view.h" | 12 #include "ash/system/tray/hover_highlight_view.h" |
| 12 #include "ash/system/tray/special_popup_row.h" | 13 #include "ash/system/tray/special_popup_row.h" |
| 13 #include "ash/system/tray/system_tray.h" | 14 #include "ash/system/tray/system_tray.h" |
| 14 #include "ash/system/tray/system_tray_item.h" | |
| 15 #include "ash/system/tray/tray_popup_header_button.h" | 15 #include "ash/system/tray/tray_popup_header_button.h" |
| 16 #include "ash/system/tray/view_click_listener.h" | 16 #include "ash/system/tray/view_click_listener.h" |
| 17 #include "ash/test/ash_test_base.h" | 17 #include "ash/test/ash_test_base.h" |
| 18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
| 19 #include "grit/ash_resources.h" | 19 #include "grit/ash_resources.h" |
| 20 #include "grit/ash_strings.h" | 20 #include "grit/ash_strings.h" |
| 21 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
| 22 #include "ui/events/test/event_generator.h" | 22 #include "ui/events/test/event_generator.h" |
| 23 #include "ui/views/controls/button/button.h" | 23 #include "ui/views/controls/button/button.h" |
| 24 #include "ui/views/view.h" | 24 #include "ui/views/view.h" |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 gfx::Rect bounds = button->GetBoundsInScreen(); | 274 gfx::Rect bounds = button->GetBoundsInScreen(); |
| 275 gfx::Point initial_point(bounds.x() - 1, bounds.y()); | 275 gfx::Point initial_point(bounds.x() - 1, bounds.y()); |
| 276 generator.set_current_location(initial_point); | 276 generator.set_current_location(initial_point); |
| 277 generator.MoveMouseBy(1, 0); | 277 generator.MoveMouseBy(1, 0); |
| 278 RunAllPendingInMessageLoop(); | 278 RunAllPendingInMessageLoop(); |
| 279 EXPECT_TRUE(button->background()); | 279 EXPECT_TRUE(button->background()); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace test | 282 } // namespace test |
| 283 } // namespace ash | 283 } // namespace ash |
| OLD | NEW |