OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_layout_manager.h" | 5 #include "ash/shelf/shelf_layout_manager.h" |
6 | 6 |
7 #include "ash/accelerators/accelerator_controller.h" | 7 #include "ash/accelerators/accelerator_controller.h" |
8 #include "ash/accelerators/accelerator_table.h" | 8 #include "ash/accelerators/accelerator_table.h" |
9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
10 #include "ash/display/display_manager.h" | 10 #include "ash/display/display_manager.h" |
11 #include "ash/focus_cycler.h" | 11 #include "ash/focus_cycler.h" |
12 #include "ash/root_window_controller.h" | 12 #include "ash/root_window_controller.h" |
13 #include "ash/session_state_delegate.h" | 13 #include "ash/session_state_delegate.h" |
14 #include "ash/shelf/shelf.h" | 14 #include "ash/shelf/shelf.h" |
15 #include "ash/shelf/shelf_layout_manager_observer.h" | 15 #include "ash/shelf/shelf_layout_manager_observer.h" |
16 #include "ash/shelf/shelf_view.h" | 16 #include "ash/shelf/shelf_view.h" |
17 #include "ash/shelf/shelf_widget.h" | 17 #include "ash/shelf/shelf_widget.h" |
18 #include "ash/shell.h" | 18 #include "ash/shell.h" |
19 #include "ash/shell_window_ids.h" | 19 #include "ash/shell_window_ids.h" |
20 #include "ash/system/status_area_widget.h" | 20 #include "ash/system/status_area_widget.h" |
21 #include "ash/system/tray/system_tray.h" | 21 #include "ash/system/tray/system_tray.h" |
22 #include "ash/system/tray/system_tray_item.h" | 22 #include "ash/system/tray/system_tray_item.h" |
23 #include "ash/test/ash_test_base.h" | 23 #include "ash/test/ash_test_base.h" |
24 #include "ash/test/shelf_test_api.h" | 24 #include "ash/test/shelf_test_api.h" |
25 #include "ash/wm/window_state.h" | 25 #include "ash/wm/window_state.h" |
26 #include "ash/wm/window_util.h" | 26 #include "ash/wm/window_util.h" |
27 #include "base/command_line.h" | 27 #include "base/command_line.h" |
28 #include "base/strings/utf_string_conversions.h" | 28 #include "base/strings/utf_string_conversions.h" |
29 #include "ui/aura/client/aura_constants.h" | 29 #include "ui/aura/client/aura_constants.h" |
30 #include "ui/aura/root_window.h" | |
31 #include "ui/aura/test/event_generator.h" | 30 #include "ui/aura/test/event_generator.h" |
32 #include "ui/aura/window.h" | 31 #include "ui/aura/window.h" |
| 32 #include "ui/aura/window_event_dispatcher.h" |
33 #include "ui/compositor/layer.h" | 33 #include "ui/compositor/layer.h" |
34 #include "ui/compositor/layer_animator.h" | 34 #include "ui/compositor/layer_animator.h" |
35 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 35 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
36 #include "ui/events/gestures/gesture_configuration.h" | 36 #include "ui/events/gestures/gesture_configuration.h" |
37 #include "ui/gfx/animation/animation_container_element.h" | 37 #include "ui/gfx/animation/animation_container_element.h" |
38 #include "ui/gfx/display.h" | 38 #include "ui/gfx/display.h" |
39 #include "ui/gfx/screen.h" | 39 #include "ui/gfx/screen.h" |
40 #include "ui/views/controls/label.h" | 40 #include "ui/views/controls/label.h" |
41 #include "ui/views/layout/fill_layout.h" | 41 #include "ui/views/layout/fill_layout.h" |
42 #include "ui/views/view.h" | 42 #include "ui/views/view.h" |
(...skipping 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT); | 1962 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT); |
1963 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 1963 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
1964 generator.ClickLeftButton(); | 1964 generator.ClickLeftButton(); |
1965 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); | 1965 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); |
1966 generator.ClickLeftButton(); | 1966 generator.ClickLeftButton(); |
1967 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 1967 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
1968 } | 1968 } |
1969 | 1969 |
1970 } // namespace internal | 1970 } // namespace internal |
1971 } // namespace ash | 1971 } // namespace ash |
OLD | NEW |