| # Copyright 2017 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//mojo/public/tools/bindings/mojom.gni") |
| |
| mojom("interfaces") { |
| sources = [ |
| "accelerator.mojom", |
| ] |
| public_deps = [ |
| "//mojo/public/mojom/base", |
| "//ui/events/mojo:interfaces", |
| ] |
| } |
| |
| source_set("struct_traits") { |
| sources = [ |
| "accelerator_struct_traits.h", |
| ] |
| public_deps = [ |
| ":interfaces_shared_cpp_sources", |
| "//mojo/public/mojom/base", |
| "//ui/base", |
| "//ui/events", |
| ] |
| } |
| |
| source_set("unittests") { |
| testonly = true |
| sources = [ |
| "accelerator_struct_traits_unittest.cc", |
| ] |
| deps = [ |
| ":interfaces", |
| ":struct_traits", |
| "//testing/gtest", |
| "//ui/base", |
| "//ui/events", |
| ] |
| } |