| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ws/window_tree.h" | 5 #include "components/mus/ws/window_tree.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "components/mus/ws/platform_display_init_params.h" | 24 #include "components/mus/ws/platform_display_init_params.h" |
| 25 #include "components/mus/ws/server_window.h" | 25 #include "components/mus/ws/server_window.h" |
| 26 #include "components/mus/ws/server_window_surface_manager_test_api.h" | 26 #include "components/mus/ws/server_window_surface_manager_test_api.h" |
| 27 #include "components/mus/ws/test_change_tracker.h" | 27 #include "components/mus/ws/test_change_tracker.h" |
| 28 #include "components/mus/ws/test_server_window_delegate.h" | 28 #include "components/mus/ws/test_server_window_delegate.h" |
| 29 #include "components/mus/ws/test_utils.h" | 29 #include "components/mus/ws/test_utils.h" |
| 30 #include "components/mus/ws/window_manager_access_policy.h" | 30 #include "components/mus/ws/window_manager_access_policy.h" |
| 31 #include "components/mus/ws/window_server.h" | 31 #include "components/mus/ws/window_server.h" |
| 32 #include "components/mus/ws/window_server_delegate.h" | 32 #include "components/mus/ws/window_server_delegate.h" |
| 33 #include "components/mus/ws/window_tree_binding.h" | 33 #include "components/mus/ws/window_tree_binding.h" |
| 34 #include "mojo/converters/geometry/geometry_type_converters.h" | |
| 35 #include "services/shell/public/interfaces/connector.mojom.h" | 34 #include "services/shell/public/interfaces/connector.mojom.h" |
| 36 #include "testing/gtest/include/gtest/gtest.h" | 35 #include "testing/gtest/include/gtest/gtest.h" |
| 37 #include "ui/events/event.h" | 36 #include "ui/events/event.h" |
| 38 #include "ui/events/event_utils.h" | 37 #include "ui/events/event_utils.h" |
| 38 #include "ui/gfx/geometry/mojo/geometry_type_converters.h" |
| 39 #include "ui/gfx/geometry/rect.h" | 39 #include "ui/gfx/geometry/rect.h" |
| 40 | 40 |
| 41 namespace mus { | 41 namespace mus { |
| 42 namespace ws { | 42 namespace ws { |
| 43 namespace test { | 43 namespace test { |
| 44 namespace { | 44 namespace { |
| 45 | 45 |
| 46 std::string WindowIdToString(const WindowId& id) { | 46 std::string WindowIdToString(const WindowId& id) { |
| 47 return base::StringPrintf("%d,%d", id.connection_id, id.window_id); | 47 return base::StringPrintf("%d,%d", id.connection_id, id.window_id); |
| 48 } | 48 } |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 ASSERT_NE(new_opacity, unknown_window.opacity()); | 1001 ASSERT_NE(new_opacity, unknown_window.opacity()); |
| 1002 | 1002 |
| 1003 EXPECT_FALSE(tree->SetWindowOpacity( | 1003 EXPECT_FALSE(tree->SetWindowOpacity( |
| 1004 ClientWindowId(WindowIdToTransportId(window_id)), new_opacity)); | 1004 ClientWindowId(WindowIdToTransportId(window_id)), new_opacity)); |
| 1005 EXPECT_NE(new_opacity, unknown_window.opacity()); | 1005 EXPECT_NE(new_opacity, unknown_window.opacity()); |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 } // namespace test | 1008 } // namespace test |
| 1009 } // namespace ws | 1009 } // namespace ws |
| 1010 } // namespace mus | 1010 } // namespace mus |
| OLD | NEW |