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

Unified Diff: third_party/WebKit/public/web/ConsoleMessageStructTraits.h

Issue 2630273002: ServiceWorker: mojofy ResumeAfterDownload and AddMessageToConsole (Closed)
Patch Set: s/is/was/ , add :: before blink and remove unnecessary include Created 3 years, 11 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: third_party/WebKit/public/web/ConsoleMessageStructTraits.h
diff --git a/third_party/WebKit/public/web/ConsoleMessageStructTraits.h b/third_party/WebKit/public/web/ConsoleMessageStructTraits.h
new file mode 100644
index 0000000000000000000000000000000000000000..3f7a2f56e081a9a874f34e0680900d8e0e2eff29
--- /dev/null
+++ b/third_party/WebKit/public/web/ConsoleMessageStructTraits.h
@@ -0,0 +1,25 @@
+// 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.
+
+#ifndef ConsoleMessageStructTraits_h
+#define ConsoleMessageStructTraits_h
+
+#include "WebConsoleMessage.h"
+#include "mojo/public/cpp/bindings/enum_traits.h"
+#include "third_party/WebKit/public/web/console_message.mojom-shared.h"
+
+namespace mojo {
+
+template <>
+struct EnumTraits<::blink::mojom::ConsoleMessageLevel,
+ ::blink::WebConsoleMessage::Level> {
+ static ::blink::mojom::ConsoleMessageLevel ToMojom(
+ ::blink::WebConsoleMessage::Level);
+ static bool FromMojom(::blink::mojom::ConsoleMessageLevel,
+ ::blink::WebConsoleMessage::Level* out);
+};
+
+} // namespace mojo
+
+#endif
« no previous file with comments | « third_party/WebKit/public/public_typemaps.gni ('k') | third_party/WebKit/public/web/ConsoleMessageStructTraits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698