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 "mojo/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 "mojo/services/window_manager/basic_focus_rules.h" | 8 #include "services/window_manager/basic_focus_rules.h" |
9 #include "mojo/services/window_manager/focus_controller_observer.h" | 9 #include "services/window_manager/focus_controller_observer.h" |
10 #include "mojo/services/window_manager/view_event_dispatcher.h" | 10 #include "services/window_manager/view_event_dispatcher.h" |
11 #include "mojo/services/window_manager/view_targeter.h" | 11 #include "services/window_manager/view_targeter.h" |
12 #include "mojo/services/window_manager/window_manager_test_util.h" | 12 #include "services/window_manager/window_manager_test_util.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "ui/events/test/event_generator.h" | 14 #include "ui/events/test/event_generator.h" |
15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 | 18 |
19 // Counts the number of events that occur. | 19 // Counts the number of events that occur. |
20 class FocusNotificationObserver : public FocusControllerObserver { | 20 class FocusNotificationObserver : public FocusControllerObserver { |
21 public: | 21 public: |
22 FocusNotificationObserver() | 22 FocusNotificationObserver() |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 DIRECT_FOCUS_CHANGE_TESTS(BasicActivation); | 440 DIRECT_FOCUS_CHANGE_TESTS(BasicActivation); |
441 DIRECT_FOCUS_CHANGE_TESTS(FocusEvents); | 441 DIRECT_FOCUS_CHANGE_TESTS(FocusEvents); |
442 | 442 |
443 // TODO(erg): Also port IMPLICIT_FOCUS_CHANGE_TARGET_TESTS / ALL_FOCUS_TESTS | 443 // TODO(erg): Also port IMPLICIT_FOCUS_CHANGE_TARGET_TESTS / ALL_FOCUS_TESTS |
444 // here, and replace the above direct testing list. | 444 // here, and replace the above direct testing list. |
445 | 445 |
446 // If a mouse event was handled, it should not activate a window. | 446 // If a mouse event was handled, it should not activate a window. |
447 FOCUS_CONTROLLER_TEST(FocusControllerMouseEventTest, IgnoreHandledEvent); | 447 FOCUS_CONTROLLER_TEST(FocusControllerMouseEventTest, IgnoreHandledEvent); |
448 | 448 |
449 } // namespace mojo | 449 } // namespace mojo |
OLD | NEW |