| 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/hover_highlight_view.h" | 7 #include "ash/common/system/tray/hover_highlight_view.h" |
| 8 #include "ash/common/system/tray/special_popup_row.h" | 8 #include "ash/common/system/tray/special_popup_row.h" |
| 9 #include "ash/common/system/tray/system_tray_item.h" | 9 #include "ash/common/system/tray/system_tray_item.h" |
| 10 #include "ash/common/system/tray/tray_popup_header_button.h" | 10 #include "ash/common/system/tray/tray_popup_header_button.h" |
| 11 #include "ash/common/system/tray/view_click_listener.h" | 11 #include "ash/common/system/tray/view_click_listener.h" |
| 12 #include "ash/system/status_area_widget.h" | |
| 13 #include "ash/system/tray/system_tray.h" | 12 #include "ash/system/tray/system_tray.h" |
| 14 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
| 15 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 16 #include "grit/ash_resources.h" | 15 #include "grit/ash_resources.h" |
| 17 #include "grit/ash_strings.h" | 16 #include "grit/ash_strings.h" |
| 18 #include "ui/aura/window.h" | |
| 19 #include "ui/events/test/event_generator.h" | 17 #include "ui/events/test/event_generator.h" |
| 20 #include "ui/views/controls/button/button.h" | 18 #include "ui/views/controls/button/button.h" |
| 21 #include "ui/views/view.h" | 19 #include "ui/views/view.h" |
| 22 #include "ui/views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
| 23 | 21 |
| 24 namespace ash { | 22 namespace ash { |
| 25 namespace test { | 23 namespace test { |
| 26 | 24 |
| 27 namespace { | 25 namespace { |
| 28 | 26 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 gfx::Rect bounds = button->GetBoundsInScreen(); | 266 gfx::Rect bounds = button->GetBoundsInScreen(); |
| 269 gfx::Point initial_point(bounds.x() - 1, bounds.y()); | 267 gfx::Point initial_point(bounds.x() - 1, bounds.y()); |
| 270 generator.set_current_location(initial_point); | 268 generator.set_current_location(initial_point); |
| 271 generator.MoveMouseBy(1, 0); | 269 generator.MoveMouseBy(1, 0); |
| 272 RunAllPendingInMessageLoop(); | 270 RunAllPendingInMessageLoop(); |
| 273 EXPECT_TRUE(button->background()); | 271 EXPECT_TRUE(button->background()); |
| 274 } | 272 } |
| 275 | 273 |
| 276 } // namespace test | 274 } // namespace test |
| 277 } // namespace ash | 275 } // namespace ash |
| OLD | NEW |