Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

Commit

Permalink
Rename traits and mojo directory in //ui/latency
Browse files Browse the repository at this point in the history
This CL renames mojo to mojom and *_struct_traits.* to
*_mojom_traits.* in //ui/latency.

*_struct_traits.* => *_mojom_traits.*
ui/latency/mojo => ui/latency/mojom

Bug: 806965
Change-Id: I04aa7f37f5f671a77bcb072ed79a0508b7b4a982
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1716041
Commit-Queue: Miyoung Shin <[email protected]>
Reviewed-by: Sadrul Chowdhury <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Ken Rockot <[email protected]>
Cr-Commit-Position: refs/heads/master@{#681615}
  • Loading branch information
MyidShin authored and Commit Bot committed Jul 27, 2019
1 parent 9edd61b commit 74dd879
Show file tree
Hide file tree
Showing 30 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion content/common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down
2 changes: 1 addition & 1 deletion content/common/input/input_event_struct_traits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion content/common/input/input_handler.mojom
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down
2 changes: 1 addition & 1 deletion services/viz/privileged/interfaces/compositing/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion services/viz/public/cpp/compositing/DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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]" ]
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion services/viz/public/interfaces/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion ui/events/mojom/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ mojom("mojom") {
public_deps = [
"//mojo/public/mojom/base",
"//ui/gfx/geometry/mojom",
"//ui/latency/mojo:interfaces",
"//ui/latency/mojom",
]
}
2 changes: 1 addition & 1 deletion ui/events/mojom/DEPS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include_rules = [
"+mojo/public",
"+ui/events",
"+ui/latency/mojo",
"+ui/latency/mojom",
]
2 changes: 1 addition & 1 deletion ui/events/mojom/event.mojom
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion ui/events/mojom/event.typemap
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion ui/events/mojom/event_mojom_traits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion ui/events/mojom/mojom_traits_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions ui/latency/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions ui/latency/mojo/BUILD.gn → ui/latency/mojom/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import("//mojo/public/tools/bindings/mojom.gni")

mojom("interfaces") {
mojom("mojom") {
sources = [
"latency_info.mojom",
]
Expand All @@ -21,6 +21,6 @@ mojom("test_interfaces") {
]

public_deps = [
":interfaces",
":mojom",
]
}
File renamed without changes.
4 changes: 2 additions & 2 deletions ui/latency/mojo/OWNERS → ui/latency/mojom/OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -68,4 +68,4 @@ struct EnumTraits<ui::mojom::LatencyComponentType, ui::LatencyComponentType> {

} // namespace mojo

#endif // UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
#endif // UI_LATENCY_MOJOM_LATENCY_INFO_MOJOM_TRAITS_H_
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module ui.mojom;

import "ui/latency/mojo/latency_info.mojom";
import "ui/latency/mojom/latency_info.mojom";

interface TraitsTestService {
[Sync]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit 74dd879

Please sign in to comment.