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

Unified Diff: Source/bindings/core/dart/DartInspectorConsoleMessage.h

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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: Source/bindings/core/dart/DartInspectorConsoleMessage.h
diff --git a/Source/platform/text/StringTruncator.h b/Source/bindings/core/dart/DartInspectorConsoleMessage.h
similarity index 73%
copy from Source/platform/text/StringTruncator.h
copy to Source/bindings/core/dart/DartInspectorConsoleMessage.h
index 5be0cc48c49c5edd9432d52687ce990051c8ff14..b9ccb9d8d42169513f252ff5158b254ffad12ae1 100644
--- a/Source/platform/text/StringTruncator.h
+++ b/Source/bindings/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 StringTruncator_h
-#define StringTruncator_h
+#ifndef DartInspectorConsoleMessage_h
+#define DartInspectorConsoleMessage_h
+
+#include "core/InspectorFrontend.h"
+#include "core/inspector/ConsoleAPITypes.h"
+#include "core/inspector/InspectorBaseAgent.h"
-#include "platform/PlatformExport.h"
#include "wtf/Forward.h"
namespace blink {
-class Font;
+class ConsoleMessage;
+class InjectedScriptManager;
-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, ConsoleMessage*, PassRefPtr<TypeBuilder::Console::ConsoleMessage> jsonObj);
};
} // namespace blink
-#endif // !defined(StringTruncator_h)
+
+#endif // !defined(DartInspectorConsoleMessage_h)
« no previous file with comments | « Source/bindings/core/dart/DartInjectedScriptManager.cpp ('k') | Source/bindings/core/dart/DartInspectorConsoleMessage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698