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/wm/panels/panel_layout_manager.h" | 5 #include "ash/wm/panels/panel_layout_manager.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "ash/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
9 #include "ash/screen_util.h" | 9 #include "ash/screen_util.h" |
10 #include "ash/shelf/shelf.h" | 10 #include "ash/shelf/shelf.h" |
11 #include "ash/shelf/shelf_button.h" | 11 #include "ash/shelf/shelf_button.h" |
12 #include "ash/shelf/shelf_layout_manager.h" | 12 #include "ash/shelf/shelf_layout_manager.h" |
13 #include "ash/shelf/shelf_model.h" | 13 #include "ash/shelf/shelf_model.h" |
14 #include "ash/shelf/shelf_types.h" | 14 #include "ash/shelf/shelf_types.h" |
15 #include "ash/shelf/shelf_util.h" | 15 #include "ash/shelf/shelf_util.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/test/ash_test_base.h" | 20 #include "ash/test/ash_test_base.h" |
21 #include "ash/test/shelf_test_api.h" | 21 #include "ash/test/shelf_test_api.h" |
22 #include "ash/test/shelf_view_test_api.h" | 22 #include "ash/test/shelf_view_test_api.h" |
23 #include "ash/test/shell_test_api.h" | 23 #include "ash/test/shell_test_api.h" |
24 #include "ash/test/test_shelf_delegate.h" | 24 #include "ash/test/test_shelf_delegate.h" |
25 #include "ash/wm/mru_window_tracker.h" | 25 #include "ash/wm/mru_window_tracker.h" |
26 #include "ash/wm/window_state.h" | 26 #include "ash/wm/window_state.h" |
27 #include "ash/wm/window_util.h" | 27 #include "ash/wm/window_util.h" |
28 #include "base/basictypes.h" | |
29 #include "base/command_line.h" | 28 #include "base/command_line.h" |
30 #include "base/compiler_specific.h" | 29 #include "base/compiler_specific.h" |
31 #include "base/i18n/rtl.h" | 30 #include "base/i18n/rtl.h" |
32 #include "base/run_loop.h" | 31 #include "base/run_loop.h" |
33 #include "ui/aura/client/aura_constants.h" | 32 #include "ui/aura/client/aura_constants.h" |
34 #include "ui/aura/test/test_windows.h" | 33 #include "ui/aura/test/test_windows.h" |
35 #include "ui/aura/window.h" | 34 #include "ui/aura/window.h" |
36 #include "ui/aura/window_event_dispatcher.h" | 35 #include "ui/aura/window_event_dispatcher.h" |
37 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
38 #include "ui/events/event_utils.h" | 37 #include "ui/events/event_utils.h" |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 // Hit test outside the top edge with a top-aligned shelf. | 849 // Hit test outside the top edge with a top-aligned shelf. |
851 touch.set_location(gfx::Point(bounds.x() + 4, bounds.y() - 6)); | 850 touch.set_location(gfx::Point(bounds.x() + 4, bounds.y() - 6)); |
852 target = targeter->FindTargetForEvent(root, &touch); | 851 target = targeter->FindTargetForEvent(root, &touch); |
853 EXPECT_NE(w.get(), target); | 852 EXPECT_NE(w.get(), target); |
854 } | 853 } |
855 | 854 |
856 INSTANTIATE_TEST_CASE_P(LtrRtl, PanelLayoutManagerTextDirectionTest, | 855 INSTANTIATE_TEST_CASE_P(LtrRtl, PanelLayoutManagerTextDirectionTest, |
857 testing::Bool()); | 856 testing::Bool()); |
858 | 857 |
859 } // namespace ash | 858 } // namespace ash |
OLD | NEW |