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

Unified Diff: sky/tools/packager/logging.h

Issue 1178213003: Introduce sky_packager (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/tools/packager/loader.cc ('k') | sky/tools/packager/logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/packager/logging.h
diff --git a/sky/engine/tonic/dart_error.h b/sky/tools/packager/logging.h
similarity index 50%
copy from sky/engine/tonic/dart_error.h
copy to sky/tools/packager/logging.h
index 52605ce9491a3554920acf0282af1dfb2de20274..227a9d8f5e99c57467bd682bd9d7a886e20d52e3 100644
--- a/sky/engine/tonic/dart_error.h
+++ b/sky/tools/packager/logging.h
@@ -2,20 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SKY_ENGINE_TONIC_DART_ERROR_H_
-#define SKY_ENGINE_TONIC_DART_ERROR_H_
+#ifndef SKY_TOOLS_PACKAGER_LOGGING_H_
+#define SKY_TOOLS_PACKAGER_LOGGING_H_
-#include "dart/runtime/include/dart_api.h"
-
-namespace blink {
+#include <string>
-namespace DartError {
-extern const char kInvalidArgument[];
-} // namespace DartError
+#include "dart/runtime/include/dart_api.h"
bool LogIfError(Dart_Handle handle);
+std::string StringFromDart(Dart_Handle string);
+Dart_Handle StringToDart(const std::string& string);
-} // namespace blink
-
-#endif // SKY_ENGINE_TONIC_DART_ERROR_H_
-
+#endif // SKY_TOOLS_PACKAGER_LOGGING_H_
« no previous file with comments | « sky/tools/packager/loader.cc ('k') | sky/tools/packager/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698