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

Side by Side Diff: components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc

Issue 2014003002: mojo/converters/input_events -> ui/events/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@converters
Patch Set: . Created 4 years, 7 months 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/mus/public/cpp/lib/window_tree_client_impl.h" 5 #include "components/mus/public/cpp/lib/window_tree_client_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/mus/common/util.h" 11 #include "components/mus/common/util.h"
12 #include "components/mus/public/cpp/input_event_handler.h" 12 #include "components/mus/public/cpp/input_event_handler.h"
13 #include "components/mus/public/cpp/lib/window_private.h" 13 #include "components/mus/public/cpp/lib/window_private.h"
14 #include "components/mus/public/cpp/property_type_converters.h" 14 #include "components/mus/public/cpp/property_type_converters.h"
15 #include "components/mus/public/cpp/tests/test_window.h" 15 #include "components/mus/public/cpp/tests/test_window.h"
16 #include "components/mus/public/cpp/tests/test_window_tree.h" 16 #include "components/mus/public/cpp/tests/test_window_tree.h"
17 #include "components/mus/public/cpp/tests/window_tree_client_impl_private.h" 17 #include "components/mus/public/cpp/tests/window_tree_client_impl_private.h"
18 #include "components/mus/public/cpp/window.h" 18 #include "components/mus/public/cpp/window.h"
19 #include "components/mus/public/cpp/window_observer.h" 19 #include "components/mus/public/cpp/window_observer.h"
20 #include "components/mus/public/cpp/window_property.h" 20 #include "components/mus/public/cpp/window_property.h"
21 #include "components/mus/public/cpp/window_tracker.h" 21 #include "components/mus/public/cpp/window_tracker.h"
22 #include "components/mus/public/cpp/window_tree_delegate.h" 22 #include "components/mus/public/cpp/window_tree_delegate.h"
23 #include "mojo/common/common_type_converters.h" 23 #include "mojo/common/common_type_converters.h"
24 #include "mojo/converters/input_events/input_events_type_converters.h"
25 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
26 #include "ui/events/event.h" 25 #include "ui/events/event.h"
27 #include "ui/events/event_utils.h" 26 #include "ui/events/event_utils.h"
27 #include "ui/events/mojo/input_events_type_converters.h"
28 #include "ui/gfx/geometry/mojo/geometry_type_converters.h" 28 #include "ui/gfx/geometry/mojo/geometry_type_converters.h"
29 #include "ui/gfx/geometry/rect.h" 29 #include "ui/gfx/geometry/rect.h"
30 30
31 namespace mus { 31 namespace mus {
32 32
33 namespace { 33 namespace {
34 34
35 void DoNothingWithEventResult(mojom::EventResult result) {} 35 void DoNothingWithEventResult(mojom::EventResult result) {}
36 36
37 Id server_id(mus::Window* window) { 37 Id server_id(mus::Window* window) {
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 1022
1023 setup.window_tree_client()->OnChangeCompleted(change_id2, false); 1023 setup.window_tree_client()->OnChangeCompleted(change_id2, false);
1024 EXPECT_FALSE(child->HasCapture()); 1024 EXPECT_FALSE(child->HasCapture());
1025 EXPECT_TRUE(root->HasCapture()); 1025 EXPECT_TRUE(root->HasCapture());
1026 1026
1027 setup.window_tree_client()->OnLostCapture(server_id(root)); 1027 setup.window_tree_client()->OnLostCapture(server_id(root));
1028 EXPECT_FALSE(root->HasCapture()); 1028 EXPECT_FALSE(root->HasCapture());
1029 } 1029 }
1030 1030
1031 } // namespace mus 1031 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/public/cpp/tests/window_tree_client_impl_private.cc ('k') | components/mus/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698