Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: ui/gfx/icc_profile.h

Issue 2381493003: Move ViewMsg_New to mojom (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/shell/public/cpp/capabilities_struct_traits.h ('k') | ui/gfx/ipc/color/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/icc_profile.h
diff --git a/ui/gfx/icc_profile.h b/ui/gfx/icc_profile.h
index e1b51b0a1ca2cd4a6e2ca334500985bdbe70cb32..fd08ba8e68c9f58663fe69ca04b3235adefb1dac 100644
--- a/ui/gfx/icc_profile.h
+++ b/ui/gfx/icc_profile.h
@@ -17,8 +17,16 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size);
+namespace mojo {
+template <typename, typename> struct StructTraits;
+}
+
namespace gfx {
+namespace mojom {
+class ICCProfileDataView;
+}
+
// Used to represent a full ICC profile, usually retrieved from a monitor. It
// can be lossily compressed into a ColorSpace object. This structure should
// only be sent from higher-privilege processes to lower-privilege processes,
@@ -77,6 +85,8 @@ class GFX_EXPORT ICCProfile {
friend int ::LLVMFuzzerTestOneInput(const uint8_t*, size_t);
friend class ColorSpace;
friend struct IPC::ParamTraits<gfx::ICCProfile>;
+ friend struct mojo::StructTraits<gfx::mojom::ICCProfileDataView,
+ gfx::ICCProfile>;
};
} // namespace gfx
« no previous file with comments | « services/shell/public/cpp/capabilities_struct_traits.h ('k') | ui/gfx/ipc/color/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698