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

Unified Diff: mojo/common/values_struct_traits.h

Issue 2686763002: [Mojo Video Capture] Split OnIncomingCapturedVideoFrame() to OnNewBuffer() and OnFrameReadyInBuffer( (Closed)
Patch Set: rebase Created 3 years, 10 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 | « media/capture/video_capture_types.h ('k') | mojo/common/values_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/values_struct_traits.h
diff --git a/mojo/common/values_struct_traits.h b/mojo/common/values_struct_traits.h
index 82d5696bee63e249f55d95320fd6684f0edf19a7..befcf3a6ea2816dd56e56f0a50933d9cec3548e0 100644
--- a/mojo/common/values_struct_traits.h
+++ b/mojo/common/values_struct_traits.h
@@ -8,6 +8,7 @@
#include "base/values.h"
#include "mojo/common/values.mojom.h"
#include "mojo/public/cpp/bindings/array_traits.h"
+#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/map_traits.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
@@ -109,6 +110,12 @@ struct StructTraits<common::mojom::DictionaryValueDataView,
};
template <>
+struct CloneTraits<std::unique_ptr<base::DictionaryValue>, false> {
+ static std::unique_ptr<base::DictionaryValue> Clone(
+ const std::unique_ptr<base::DictionaryValue>& input);
+};
+
+template <>
struct UnionTraits<common::mojom::ValueDataView, base::Value> {
static common::mojom::ValueDataView::Tag GetTag(const base::Value& data) {
switch (data.GetType()) {
« no previous file with comments | « media/capture/video_capture_types.h ('k') | mojo/common/values_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698