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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "ash/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
8 #include "ash/drag_drop/drag_drop_controller.h" | 8 #include "ash/drag_drop/drag_drop_controller.h" |
9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
10 #include "ash/screen_util.h" | 10 #include "ash/screen_util.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "ui/aura/client/aura_constants.h" | 36 #include "ui/aura/client/aura_constants.h" |
37 #include "ui/aura/client/cursor_client.h" | 37 #include "ui/aura/client/cursor_client.h" |
38 #include "ui/aura/client/focus_client.h" | 38 #include "ui/aura/client/focus_client.h" |
39 #include "ui/aura/test/test_window_delegate.h" | 39 #include "ui/aura/test/test_window_delegate.h" |
40 #include "ui/aura/test/test_windows.h" | 40 #include "ui/aura/test/test_windows.h" |
41 #include "ui/aura/window.h" | 41 #include "ui/aura/window.h" |
42 #include "ui/aura/window_event_dispatcher.h" | 42 #include "ui/aura/window_event_dispatcher.h" |
43 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 43 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
44 #include "ui/events/test/event_generator.h" | 44 #include "ui/events/test/event_generator.h" |
45 #include "ui/gfx/geometry/point_conversions.h" | 45 #include "ui/gfx/geometry/point_conversions.h" |
46 #include "ui/gfx/rect_conversions.h" | 46 #include "ui/gfx/geometry/rect_conversions.h" |
47 #include "ui/gfx/transform.h" | 47 #include "ui/gfx/transform.h" |
48 #include "ui/gfx/transform_util.h" | 48 #include "ui/gfx/transform_util.h" |
49 #include "ui/views/controls/label.h" | 49 #include "ui/views/controls/label.h" |
50 #include "ui/views/widget/native_widget_aura.h" | 50 #include "ui/views/widget/native_widget_aura.h" |
51 #include "ui/views/widget/widget_delegate.h" | 51 #include "ui/views/widget/widget_delegate.h" |
52 #include "ui/wm/core/window_util.h" | 52 #include "ui/wm/core/window_util.h" |
53 #include "ui/wm/public/activation_delegate.h" | 53 #include "ui/wm/public/activation_delegate.h" |
54 | 54 |
55 namespace ash { | 55 namespace ash { |
56 namespace { | 56 namespace { |
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1424 gfx::ToEnclosingRect(GetTransformedBoundsInRootWindow(panel2.get()))); | 1424 gfx::ToEnclosingRect(GetTransformedBoundsInRootWindow(panel2.get()))); |
1425 gfx::Point tap_target(panel2_transformed_bounds.right() - 2, | 1425 gfx::Point tap_target(panel2_transformed_bounds.right() - 2, |
1426 panel2_transformed_bounds.bottom() - 2); | 1426 panel2_transformed_bounds.bottom() - 2); |
1427 | 1427 |
1428 ui::test::EventGenerator generator(root_windows[1]); | 1428 ui::test::EventGenerator generator(root_windows[1]); |
1429 generator.GestureTapAt(tap_target); | 1429 generator.GestureTapAt(tap_target); |
1430 EXPECT_EQ(panel2.get(), GetFocusedWindow()); | 1430 EXPECT_EQ(panel2.get(), GetFocusedWindow()); |
1431 } | 1431 } |
1432 | 1432 |
1433 } // namespace ash | 1433 } // namespace ash |
OLD | NEW |