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 "services/window_manager/focus_controller.h" | 5 #include "services/window_manager/focus_controller.h" |
6 | 6 |
7 #include "mojo/converters/geometry/geometry_type_converters.h" | 7 #include "mojo/converters/geometry/geometry_type_converters.h" |
8 #include "services/window_manager/basic_focus_rules.h" | 8 #include "services/window_manager/basic_focus_rules.h" |
9 #include "services/window_manager/capture_controller.h" | 9 #include "services/window_manager/capture_controller.h" |
10 #include "services/window_manager/focus_controller_observer.h" | 10 #include "services/window_manager/focus_controller_observer.h" |
11 #include "services/window_manager/view_event_dispatcher.h" | 11 #include "services/window_manager/view_event_dispatcher.h" |
12 #include "services/window_manager/view_targeter.h" | 12 #include "services/window_manager/view_targeter.h" |
13 #include "services/window_manager/window_manager_test_util.h" | 13 #include "services/window_manager/window_manager_test_util.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "ui/events/test/event_generator.h" | |
16 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
17 | 16 |
18 using mojo::View; | 17 using mojo::View; |
19 | 18 |
20 namespace window_manager { | 19 namespace window_manager { |
21 | 20 |
22 // Counts the number of events that occur. | 21 // Counts the number of events that occur. |
23 class FocusNotificationObserver : public FocusControllerObserver { | 22 class FocusNotificationObserver : public FocusControllerObserver { |
24 public: | 23 public: |
25 FocusNotificationObserver() | 24 FocusNotificationObserver() |
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 | 1146 |
1148 // See description above DontPassDestroyedView() for details. | 1147 // See description above DontPassDestroyedView() for details. |
1149 FOCUS_CONTROLLER_TEST(FocusControllerApiTest, DontPassDestroyedView); | 1148 FOCUS_CONTROLLER_TEST(FocusControllerApiTest, DontPassDestroyedView); |
1150 | 1149 |
1151 // TODO(erg): Add the TextInputClient tests here. | 1150 // TODO(erg): Add the TextInputClient tests here. |
1152 | 1151 |
1153 // If a mouse event was handled, it should not activate a view. | 1152 // If a mouse event was handled, it should not activate a view. |
1154 FOCUS_CONTROLLER_TEST(FocusControllerMouseEventTest, IgnoreHandledEvent); | 1153 FOCUS_CONTROLLER_TEST(FocusControllerMouseEventTest, IgnoreHandledEvent); |
1155 | 1154 |
1156 } // namespace window_manager | 1155 } // namespace window_manager |
OLD | NEW |