| 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)
|
|
|