diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn index e91a08e730490b..25077ee912402c 100644 --- a/content/common/BUILD.gn +++ b/content/common/BUILD.gn @@ -527,7 +527,7 @@ mojom("mojo_bindings") { "//ui/gfx/image/mojo:interfaces", "//ui/gfx/mojo", "//ui/gfx/range/mojo", - "//ui/latency/mojo:interfaces", + "//ui/latency/mojom", "//url/mojom:url_mojom_gurl", "//url/mojom:url_mojom_origin", ] diff --git a/content/common/input/input_event_struct_traits.cc b/content/common/input/input_event_struct_traits.cc index 909da64bd9dbd7..8358d6b9901194 100644 --- a/content/common/input/input_event_struct_traits.cc +++ b/content/common/input/input_event_struct_traits.cc @@ -9,7 +9,7 @@ #include "mojo/public/cpp/base/time_mojom_traits.h" #include "third_party/blink/public/platform/web_keyboard_event.h" #include "third_party/blink/public/platform/web_mouse_wheel_event.h" -#include "ui/latency/mojo/latency_info_struct_traits.h" +#include "ui/latency/mojom/latency_info_mojom_traits.h" namespace mojo { namespace { diff --git a/content/common/input/input_handler.mojom b/content/common/input/input_handler.mojom index 44ae24eab76878..1f7c3b8f45ae41 100644 --- a/content/common/input/input_handler.mojom +++ b/content/common/input/input_handler.mojom @@ -14,7 +14,7 @@ import "ui/events/mojom/event.mojom"; import "ui/events/mojom/event_constants.mojom"; import "ui/gfx/geometry/mojom/geometry.mojom"; import "ui/gfx/range/mojo/range.mojom"; -import "ui/latency/mojo/latency_info.mojom"; +import "ui/latency/mojom/latency_info.mojom"; // These structs are purposely duplicated from ui/events/mojom/event.mojom. diff --git a/mojo/public/tools/bindings/chromium_bindings_configuration.gni b/mojo/public/tools/bindings/chromium_bindings_configuration.gni index d8ba278a24260b..8b10f0b885a3a8 100644 --- a/mojo/public/tools/bindings/chromium_bindings_configuration.gni +++ b/mojo/public/tools/bindings/chromium_bindings_configuration.gni @@ -55,7 +55,7 @@ _typemap_imports = [ "//ui/display/mojom/typemaps.gni", "//ui/events/mojom/typemaps.gni", "//ui/gfx/typemaps.gni", - "//ui/latency/mojo/typemaps.gni", + "//ui/latency/mojom/typemaps.gni", "//ui/ozone/public/mojom/typemaps.gni", "//url/mojom/typemaps.gni", ] diff --git a/services/viz/privileged/interfaces/compositing/BUILD.gn b/services/viz/privileged/interfaces/compositing/BUILD.gn index 3be61d3345976d..fe2c89123bec43 100644 --- a/services/viz/privileged/interfaces/compositing/BUILD.gn +++ b/services/viz/privileged/interfaces/compositing/BUILD.gn @@ -26,7 +26,7 @@ mojom("compositing") { "//skia/public/interfaces", "//ui/gfx/geometry/mojom", "//ui/gfx/mojo", - "//ui/latency/mojo:interfaces", + "//ui/latency/mojom", ] enabled_features = [] diff --git a/services/viz/privileged/interfaces/compositing/display_private.mojom b/services/viz/privileged/interfaces/compositing/display_private.mojom index d5d0f0eaab04cc..beb510953b96dc 100644 --- a/services/viz/privileged/interfaces/compositing/display_private.mojom +++ b/services/viz/privileged/interfaces/compositing/display_private.mojom @@ -11,7 +11,7 @@ import "ui/gfx/mojo/color_space.mojom"; import "ui/gfx/mojo/overlay_transform.mojom"; import "ui/gfx/mojo/transform.mojom"; import "ui/gfx/geometry/mojom/geometry.mojom"; -import "ui/latency/mojo/latency_info.mojom"; +import "ui/latency/mojom/latency_info.mojom"; import "services/viz/privileged/interfaces/compositing/layered_window_updater.mojom"; import "services/viz/privileged/interfaces/compositing/vsync_parameter_observer.mojom"; diff --git a/services/viz/public/cpp/compositing/DEPS b/services/viz/public/cpp/compositing/DEPS index ebcca0087253bb..4ba173d44841a6 100644 --- a/services/viz/public/cpp/compositing/DEPS +++ b/services/viz/public/cpp/compositing/DEPS @@ -5,6 +5,6 @@ include_rules = [ "+skia/public/interfaces", "+third_party/skia/include", "+ui/gfx", - "+ui/latency/mojo", + "+ui/latency/mojom", "+gpu/ipc/common/vulkan_ycbcr_info.h" ] diff --git a/services/viz/public/cpp/compositing/compositor_frame_for_blink.typemap b/services/viz/public/cpp/compositing/compositor_frame_for_blink.typemap index 41ca02d4f1130a..e2602ec69208d0 100644 --- a/services/viz/public/cpp/compositing/compositor_frame_for_blink.typemap +++ b/services/viz/public/cpp/compositing/compositor_frame_for_blink.typemap @@ -20,7 +20,7 @@ traits_headers = [ "//services/viz/public/cpp/compositing/transferable_resource_struct_traits.h", "//ui/gfx/mojo/selection_bound_struct_traits.h", "//ui/gfx/mojo/transform_struct_traits.h", - "//ui/latency/mojo/latency_info_struct_traits.h", + "//ui/latency/mojom/latency_info_mojom_traits.h", ] public_deps = [ "//components/viz/common", @@ -29,6 +29,6 @@ public_deps = [ "//skia/public/interfaces", "//ui/gfx/geometry/mojom", "//ui/gfx/mojo", - "//ui/latency/mojo:interfaces", + "//ui/latency/mojom", ] type_mappings = [ "viz.mojom.CompositorFrame=viz::CompositorFrame[move_only]" ] diff --git a/services/viz/public/cpp/compositing/compositor_frame_metadata_struct_traits.cc b/services/viz/public/cpp/compositing/compositor_frame_metadata_struct_traits.cc index c972b50b5d40b4..b29472d8950e1f 100644 --- a/services/viz/public/cpp/compositing/compositor_frame_metadata_struct_traits.cc +++ b/services/viz/public/cpp/compositing/compositor_frame_metadata_struct_traits.cc @@ -9,7 +9,7 @@ #include "services/viz/public/cpp/compositing/selection_struct_traits.h" #include "services/viz/public/cpp/compositing/surface_id_struct_traits.h" #include "ui/gfx/mojo/selection_bound_struct_traits.h" -#include "ui/latency/mojo/latency_info_struct_traits.h" +#include "ui/latency/mojom/latency_info_mojom_traits.h" namespace mojo { diff --git a/services/viz/public/cpp/compositing/struct_traits_perftest.cc b/services/viz/public/cpp/compositing/struct_traits_perftest.cc index 72314192b384e0..aee4b5487c0bc7 100644 --- a/services/viz/public/cpp/compositing/struct_traits_perftest.cc +++ b/services/viz/public/cpp/compositing/struct_traits_perftest.cc @@ -22,7 +22,7 @@ #include "testing/perf/perf_test.h" #include "ui/gfx/geometry/mojom/geometry_mojom_traits.h" #include "ui/gfx/mojo/selection_bound_struct_traits.h" -#include "ui/latency/mojo/latency_info_struct_traits.h" +#include "ui/latency/mojom/latency_info_mojom_traits.h" namespace viz { namespace { diff --git a/services/viz/public/cpp/compositing/struct_traits_unittest.cc b/services/viz/public/cpp/compositing/struct_traits_unittest.cc index df3778cd02a75b..25d6726c54d8c8 100644 --- a/services/viz/public/cpp/compositing/struct_traits_unittest.cc +++ b/services/viz/public/cpp/compositing/struct_traits_unittest.cc @@ -61,7 +61,7 @@ #include "ui/gfx/mojo/color_space_mojom_traits.h" #include "ui/gfx/mojo/selection_bound_struct_traits.h" #include "ui/gfx/mojo/transform_struct_traits.h" -#include "ui/latency/mojo/latency_info_struct_traits.h" +#include "ui/latency/mojom/latency_info_mojom_traits.h" namespace viz { diff --git a/services/viz/public/interfaces/BUILD.gn b/services/viz/public/interfaces/BUILD.gn index 5d590043db01aa..772fa1c675260e 100644 --- a/services/viz/public/interfaces/BUILD.gn +++ b/services/viz/public/interfaces/BUILD.gn @@ -46,7 +46,7 @@ mojom("interfaces") { "//skia/public/interfaces", "//ui/gfx/geometry/mojom", "//ui/gfx/mojo", - "//ui/latency/mojo:interfaces", + "//ui/latency/mojom", ] if (is_chromeos) { diff --git a/services/viz/public/interfaces/compositing/compositor_frame_metadata.mojom b/services/viz/public/interfaces/compositing/compositor_frame_metadata.mojom index 6b17d8653d471f..cff2aef12fcc21 100644 --- a/services/viz/public/interfaces/compositing/compositor_frame_metadata.mojom +++ b/services/viz/public/interfaces/compositing/compositor_frame_metadata.mojom @@ -10,8 +10,8 @@ import "services/viz/public/interfaces/compositing/frame_deadline.mojom"; import "services/viz/public/interfaces/compositing/selection.mojom"; import "services/viz/public/interfaces/compositing/surface_id.mojom"; import "services/viz/public/interfaces/compositing/surface_range.mojom"; -import "ui/latency/mojo/latency_info.mojom"; import "ui/gfx/geometry/mojom/geometry.mojom"; +import "ui/latency/mojom/latency_info.mojom"; // See components/viz/service/quads/compositor_frame_metadata.h. struct CompositorFrameMetadata { diff --git a/ui/events/mojom/BUILD.gn b/ui/events/mojom/BUILD.gn index b431c4436a8342..eb177e8e5d7863 100644 --- a/ui/events/mojom/BUILD.gn +++ b/ui/events/mojom/BUILD.gn @@ -14,6 +14,6 @@ mojom("mojom") { public_deps = [ "//mojo/public/mojom/base", "//ui/gfx/geometry/mojom", - "//ui/latency/mojo:interfaces", + "//ui/latency/mojom", ] } diff --git a/ui/events/mojom/DEPS b/ui/events/mojom/DEPS index 12efe84d461d2c..631bf63f64cea0 100644 --- a/ui/events/mojom/DEPS +++ b/ui/events/mojom/DEPS @@ -1,5 +1,5 @@ include_rules = [ "+mojo/public", "+ui/events", - "+ui/latency/mojo", + "+ui/latency/mojom", ] diff --git a/ui/events/mojom/event.mojom b/ui/events/mojom/event.mojom index 3968e84ca825fd..7cdb0422ef42e6 100644 --- a/ui/events/mojom/event.mojom +++ b/ui/events/mojom/event.mojom @@ -8,7 +8,7 @@ import "mojo/public/mojom/base/time.mojom"; import "ui/events/mojom/event_constants.mojom"; import "ui/events/mojom/keyboard_codes.mojom"; import "ui/gfx/geometry/mojom/geometry.mojom"; -import "ui/latency/mojo/latency_info.mojom"; +import "ui/latency/mojom/latency_info.mojom"; // The values here correspond to the values defined in ui::KeyEvent. struct KeyData { diff --git a/ui/events/mojom/event.typemap b/ui/events/mojom/event.typemap index d7a53e231dac97..57d0d1e615a768 100644 --- a/ui/events/mojom/event.typemap +++ b/ui/events/mojom/event.typemap @@ -9,7 +9,7 @@ public_deps = [ "//ui/events", "//ui/events:dom_keycode_converter", "//ui/gfx/geometry/mojom", - "//ui/latency/mojo:interfaces", + "//ui/latency/mojom", ] deps = [ "//ipc:param_traits", diff --git a/ui/events/mojom/event_mojom_traits.cc b/ui/events/mojom/event_mojom_traits.cc index 99b16f3dd8c4ec..9c49a894229ea1 100644 --- a/ui/events/mojom/event_mojom_traits.cc +++ b/ui/events/mojom/event_mojom_traits.cc @@ -11,7 +11,7 @@ #include "ui/events/keycodes/dom/dom_code.h" #include "ui/events/keycodes/dom/keycode_converter.h" #include "ui/events/mojom/event_constants.mojom.h" -#include "ui/latency/mojo/latency_info_struct_traits.h" +#include "ui/latency/mojom/latency_info_mojom_traits.h" namespace mojo { diff --git a/ui/events/mojom/mojom_traits_unittest.cc b/ui/events/mojom/mojom_traits_unittest.cc index 6a967faf2e55b6..f83d07d04c5b04 100644 --- a/ui/events/mojom/mojom_traits_unittest.cc +++ b/ui/events/mojom/mojom_traits_unittest.cc @@ -13,7 +13,7 @@ #include "ui/events/mojom/event.mojom.h" #include "ui/events/mojom/event_mojom_traits.h" #include "ui/gfx/geometry/mojom/geometry_mojom_traits.h" -#include "ui/latency/mojo/latency_info_struct_traits.h" +#include "ui/latency/mojom/latency_info_mojom_traits.h" #if defined(USE_OZONE) #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" // nogncheck diff --git a/ui/latency/BUILD.gn b/ui/latency/BUILD.gn index b40ad832b366db..caaecb333930f4 100644 --- a/ui/latency/BUILD.gn +++ b/ui/latency/BUILD.gn @@ -75,14 +75,14 @@ test("latency_unittests") { if (!is_ios) { sources += [ "ipc/latency_info_param_traits_unittest.cc", - "mojo/struct_traits_unittest.cc", + "mojom/mojom_traits_unittest.cc", ] deps += [ "//ipc:test_support", "//mojo/public/cpp/bindings", "//ui/gfx/ipc/geometry", "//ui/latency/ipc", - "//ui/latency/mojo:test_interfaces", + "//ui/latency/mojom:test_interfaces", ] } } diff --git a/ui/latency/mojo/BUILD.gn b/ui/latency/mojom/BUILD.gn similarity index 91% rename from ui/latency/mojo/BUILD.gn rename to ui/latency/mojom/BUILD.gn index 17c27b18f64258..4b1bb6e7b867d8 100644 --- a/ui/latency/mojo/BUILD.gn +++ b/ui/latency/mojom/BUILD.gn @@ -4,7 +4,7 @@ import("//mojo/public/tools/bindings/mojom.gni") -mojom("interfaces") { +mojom("mojom") { sources = [ "latency_info.mojom", ] @@ -21,6 +21,6 @@ mojom("test_interfaces") { ] public_deps = [ - ":interfaces", + ":mojom", ] } diff --git a/ui/latency/mojo/DEPS b/ui/latency/mojom/DEPS similarity index 100% rename from ui/latency/mojo/DEPS rename to ui/latency/mojom/DEPS diff --git a/ui/latency/mojo/OWNERS b/ui/latency/mojom/OWNERS similarity index 61% rename from ui/latency/mojo/OWNERS rename to ui/latency/mojom/OWNERS index 253d9465a0206e..743855d259fd9f 100644 --- a/ui/latency/mojo/OWNERS +++ b/ui/latency/mojom/OWNERS @@ -4,5 +4,5 @@ per-file *.mojom=file://ipc/SECURITY_OWNERS per-file *.typemap=set noparent per-file *.typemap=file://ipc/SECURITY_OWNERS -per-file *_struct_traits*.*=set noparent -per-file *_struct_traits*.*=file://ipc/SECURITY_OWNERS +per-file *_mojom_traits*.*=set noparent +per-file *_mojom_traits*.*=file://ipc/SECURITY_OWNERS diff --git a/ui/latency/mojo/latency_info.mojom b/ui/latency/mojom/latency_info.mojom similarity index 100% rename from ui/latency/mojo/latency_info.mojom rename to ui/latency/mojom/latency_info.mojom diff --git a/ui/latency/mojo/latency_info.typemap b/ui/latency/mojom/latency_info.typemap similarity index 70% rename from ui/latency/mojo/latency_info.typemap rename to ui/latency/mojom/latency_info.typemap index 9802c0c4af93d3..7c6e2fc3315621 100644 --- a/ui/latency/mojo/latency_info.typemap +++ b/ui/latency/mojom/latency_info.typemap @@ -2,12 +2,12 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -mojom = "//ui/latency/mojo/latency_info.mojom" +mojom = "//ui/latency/mojom/latency_info.mojom" public_headers = [ "//ui/latency/latency_info.h" ] -traits_headers = [ "//ui/latency/mojo/latency_info_struct_traits.h" ] +traits_headers = [ "//ui/latency/mojom/latency_info_mojom_traits.h" ] sources = [ - "latency_info_struct_traits.cc", - "latency_info_struct_traits.h", + "latency_info_mojom_traits.cc", + "latency_info_mojom_traits.h", ] public_deps = [ "//ui/latency", diff --git a/ui/latency/mojo/latency_info_struct_traits.cc b/ui/latency/mojom/latency_info_mojom_traits.cc similarity index 99% rename from ui/latency/mojo/latency_info_struct_traits.cc rename to ui/latency/mojom/latency_info_mojom_traits.cc index 4bb11f149d0c9b..4ef390a02d66de 100644 --- a/ui/latency/mojo/latency_info_struct_traits.cc +++ b/ui/latency/mojom/latency_info_mojom_traits.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "ui/latency/mojo/latency_info_struct_traits.h" +#include "ui/latency/mojom/latency_info_mojom_traits.h" #include "mojo/public/cpp/base/time_mojom_traits.h" diff --git a/ui/latency/mojo/latency_info_struct_traits.h b/ui/latency/mojom/latency_info_mojom_traits.h similarity index 92% rename from ui/latency/mojo/latency_info_struct_traits.h rename to ui/latency/mojom/latency_info_mojom_traits.h index e5afdf51819c3b..3bfa5a7d1d4b35 100644 --- a/ui/latency/mojo/latency_info_struct_traits.h +++ b/ui/latency/mojom/latency_info_mojom_traits.h @@ -2,11 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ -#define UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ +#ifndef UI_LATENCY_MOJOM_LATENCY_INFO_MOJOM_TRAITS_H_ +#define UI_LATENCY_MOJOM_LATENCY_INFO_MOJOM_TRAITS_H_ #include "ui/latency/latency_info.h" -#include "ui/latency/mojo/latency_info.mojom-shared.h" +#include "ui/latency/mojom/latency_info.mojom-shared.h" namespace mojo { @@ -68,4 +68,4 @@ struct EnumTraits { } // namespace mojo -#endif // UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ +#endif // UI_LATENCY_MOJOM_LATENCY_INFO_MOJOM_TRAITS_H_ diff --git a/ui/latency/mojo/struct_traits_unittest.cc b/ui/latency/mojom/mojom_traits_unittest.cc similarity index 94% rename from ui/latency/mojo/struct_traits_unittest.cc rename to ui/latency/mojom/mojom_traits_unittest.cc index 6ada7af8252354..7d0336830fb3dc 100644 --- a/ui/latency/mojo/struct_traits_unittest.cc +++ b/ui/latency/mojom/mojom_traits_unittest.cc @@ -7,8 +7,8 @@ #include "base/test/scoped_task_environment.h" #include "mojo/public/cpp/bindings/binding_set.h" #include "testing/gtest/include/gtest/gtest.h" -#include "ui/latency/mojo/latency_info_struct_traits.h" -#include "ui/latency/mojo/traits_test_service.mojom.h" +#include "ui/latency/mojom/latency_info_mojom_traits.h" +#include "ui/latency/mojom/traits_test_service.mojom.h" namespace ui { diff --git a/ui/latency/mojo/traits_test_service.mojom b/ui/latency/mojom/traits_test_service.mojom similarity index 86% rename from ui/latency/mojo/traits_test_service.mojom rename to ui/latency/mojom/traits_test_service.mojom index f55599c05aacef..16a2e984c4f1ca 100644 --- a/ui/latency/mojo/traits_test_service.mojom +++ b/ui/latency/mojom/traits_test_service.mojom @@ -4,7 +4,7 @@ module ui.mojom; -import "ui/latency/mojo/latency_info.mojom"; +import "ui/latency/mojom/latency_info.mojom"; interface TraitsTestService { [Sync] diff --git a/ui/latency/mojo/typemaps.gni b/ui/latency/mojom/typemaps.gni similarity index 74% rename from ui/latency/mojo/typemaps.gni rename to ui/latency/mojom/typemaps.gni index b4658eb7d92ee8..aa9d39aa638338 100644 --- a/ui/latency/mojo/typemaps.gni +++ b/ui/latency/mojom/typemaps.gni @@ -2,4 +2,4 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -typemaps = [ "//ui/latency/mojo/latency_info.typemap" ] +typemaps = [ "//ui/latency/mojom/latency_info.typemap" ]