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

Unified Diff: services/shell/public/cpp/capabilities_struct_traits.h

Issue 2253293002: Mojo C++ bindings: change the first template parameter of StructTraits and UnionTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@91_extra
Patch Set: rebase Created 4 years, 4 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
Index: services/shell/public/cpp/capabilities_struct_traits.h
diff --git a/services/shell/public/cpp/capabilities_struct_traits.h b/services/shell/public/cpp/capabilities_struct_traits.h
index 5356289bbc695c385acc804f12240c544c820e36..ef602d02c66bf637df5cb4deae1a3bdcfd6d3b06 100644
--- a/services/shell/public/cpp/capabilities_struct_traits.h
+++ b/services/shell/public/cpp/capabilities_struct_traits.h
@@ -11,7 +11,8 @@
namespace mojo {
template <>
-struct StructTraits<shell::mojom::CapabilityRequest, shell::CapabilityRequest> {
+struct StructTraits<shell::mojom::CapabilityRequest::DataView,
+ shell::CapabilityRequest> {
static const shell::Classes& classes(
const shell::CapabilityRequest& request) {
return request.classes;
@@ -44,7 +45,8 @@ struct StructTraits<shell::mojom::CapabilityRequest, shell::CapabilityRequest> {
};
template <>
-struct StructTraits<shell::mojom::CapabilitySpec, shell::CapabilitySpec> {
+struct StructTraits<shell::mojom::CapabilitySpec::DataView,
+ shell::CapabilitySpec> {
static const std::map<shell::Class, shell::Interfaces>& provided(
const shell::CapabilitySpec& spec) {
return spec.provided;

Powered by Google App Engine
This is Rietveld 408576698