Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: services/window_manager/focus_controller_unittest.cc

Issue 765753003: Move window_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/window_manager/focus_controller_observer.h ('k') | services/window_manager/focus_rules.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698