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

Unified Diff: sky/engine/bindings-dart/core/dart/DartInspectorConsoleMessage.h

Issue 875013003: Import Dart bindings as of Blink r188698. This merely copies the files over and does not attach any… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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: sky/engine/bindings-dart/core/dart/DartInspectorConsoleMessage.h
diff --git a/sky/engine/platform/text/StringTruncator.h b/sky/engine/bindings-dart/core/dart/DartInspectorConsoleMessage.h
similarity index 71%
copy from sky/engine/platform/text/StringTruncator.h
copy to sky/engine/bindings-dart/core/dart/DartInspectorConsoleMessage.h
index c85b22ff506ae83d4b34f38e5b0b75fcf724b7b8..a6dff71640ea6a3ffa326b9909bee6bb84d1c8bb 100644
--- a/sky/engine/platform/text/StringTruncator.h
+++ b/sky/engine/bindings-dart/core/dart/DartInspectorConsoleMessage.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
+ * Copyright (C) 2014 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -26,23 +26,26 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SKY_ENGINE_PLATFORM_TEXT_STRINGTRUNCATOR_H_
-#define SKY_ENGINE_PLATFORM_TEXT_STRINGTRUNCATOR_H_
+#ifndef DartInspectorConsoleMessage_h
+#define DartInspectorConsoleMessage_h
-#include "sky/engine/platform/PlatformExport.h"
-#include "sky/engine/wtf/Forward.h"
+#include "core/InspectorFrontend.h"
+#include "core/inspector/ConsoleAPITypes.h"
+#include "core/inspector/InspectorBaseAgent.h"
+
+#include "wtf/Forward.h"
namespace blink {
-class Font;
+class InjectedScriptManager;
+class InspectorConsoleMessage;
-class PLATFORM_EXPORT StringTruncator {
+class DartInspectorConsoleMessage {
public:
- static String centerTruncate(const String&, float maxWidth, const Font&);
- static String rightTruncate(const String&, float maxWidth, const Font&);
- static float width(const String&, const Font&);
+ static void addToFrontend(InspectorFrontend::Console*, InjectedScriptManager*, bool generatePreview, InspectorConsoleMessage*, RefPtr<TypeBuilder::Console::ConsoleMessage> jsonObj);
};
} // namespace blink
-#endif // SKY_ENGINE_PLATFORM_TEXT_STRINGTRUNCATOR_H_
+
+#endif // !defined(DartInspectorConsoleMessage_h)

Powered by Google App Engine
This is Rietveld 408576698