Commit 4c92f310 authored by Jesse Schettler's avatar Jesse Schettler Committed by Commit Bot

arc: Move print traits files to //components/arc

Now that the ArcPrintService has been removed, there's nothing in
//chrome/browser/chromeos/arc/print except traits files. Move these
files to //components/arc/mojom with the associated Mojo file.

Bug: b:152519668
Change-Id: Ib5e441d74a4fa54da76b6da7eaa250dc038cda7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2183488Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarYusuke Sato <yusukes@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Jesse Schettler <jschettler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#766479}
parent 7a867ff2
per-file *_mojom_traits*.*=set noparent
per-file *_mojom_traits*.*=file://ipc/SECURITY_OWNERS
...@@ -20,6 +20,7 @@ include_rules = [ ...@@ -20,6 +20,7 @@ include_rules = [
"+media/base", "+media/base",
"+media/video/video_encode_accelerator.h", "+media/video/video_encode_accelerator.h",
"+mojo", "+mojo",
"+printing",
"+storage/browser/file_system", "+storage/browser/file_system",
"+third_party/re2", "+third_party/re2",
"+third_party/skia", "+third_party/skia",
......
...@@ -4,14 +4,10 @@ public_headers = [ ...@@ -4,14 +4,10 @@ public_headers = [
"//printing/page_range.h", "//printing/page_range.h",
"//ui/gfx/geometry/size.h", "//ui/gfx/geometry/size.h",
] ]
traits_headers = [ "//chrome/browser/chromeos/arc/print/print_mojom_traits.h" ] traits_headers = [ "//components/arc/mojom/print_mojom_traits.h" ]
sources = [ sources = [ "//components/arc/mojom/print_mojom_traits.cc" ]
"//chrome/browser/chromeos/arc/print/print_mojom_traits.cc",
]
deps = [] deps = []
public_deps = [ public_deps = [ "//printing:printing" ]
"//printing:printing",
]
type_mappings = [ type_mappings = [
"arc.mojom.PrintPageRange=::printing::PageRange", "arc.mojom.PrintPageRange=::printing::PageRange",
"arc.mojom.PrintResolution=::gfx::Size", "arc.mojom.PrintResolution=::gfx::Size",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "chrome/browser/chromeos/arc/print/print_mojom_traits.h" #include "components/arc/mojom/print_mojom_traits.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "printing/mojom/print.mojom.h" #include "printing/mojom/print.mojom.h"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_ARC_PRINT_PRINT_MOJOM_TRAITS_H_ #ifndef COMPONENTS_ARC_MOJOM_PRINT_MOJOM_TRAITS_H_
#define CHROME_BROWSER_CHROMEOS_ARC_PRINT_PRINT_MOJOM_TRAITS_H_ #define COMPONENTS_ARC_MOJOM_PRINT_MOJOM_TRAITS_H_
#include <string> #include <string>
#include <vector> #include <vector>
...@@ -76,4 +76,4 @@ struct StructTraits<arc::mojom::PrinterCapabilitiesDataView, ...@@ -76,4 +76,4 @@ struct StructTraits<arc::mojom::PrinterCapabilitiesDataView,
} // namespace mojo } // namespace mojo
#endif // CHROME_BROWSER_CHROMEOS_ARC_PRINT_PRINT_MOJOM_TRAITS_H_ #endif // COMPONENTS_ARC_MOJOM_PRINT_MOJOM_TRAITS_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment