| Index: sky/engine/bindings-dart/core/dart/DartIsolateDestructionObserver.h
|
| diff --git a/sky/engine/platform/fonts/FontPlatformFeatures.h b/sky/engine/bindings-dart/core/dart/DartIsolateDestructionObserver.h
|
| similarity index 75%
|
| copy from sky/engine/platform/fonts/FontPlatformFeatures.h
|
| copy to sky/engine/bindings-dart/core/dart/DartIsolateDestructionObserver.h
|
| index 0585176ce1b520f704e61a939c532dd271f644fb..a6264661a025048afccdd6aba8a5a772e79f84d7 100644
|
| --- a/sky/engine/platform/fonts/FontPlatformFeatures.h
|
| +++ b/sky/engine/bindings-dart/core/dart/DartIsolateDestructionObserver.h
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2014 Google Inc. All rights reserved.
|
| + * Copyright (C) 2006-2012 Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -28,21 +28,28 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef SKY_ENGINE_PLATFORM_FONTS_FONTPLATFORMFEATURES_H_
|
| -#define SKY_ENGINE_PLATFORM_FONTS_FONTPLATFORMFEATURES_H_
|
| +#ifndef DartIsolateDestructionObserver_h
|
| +#define DartIsolateDestructionObserver_h
|
|
|
| -#include "sky/engine/platform/PlatformExport.h"
|
| +#include <dart_api.h>
|
|
|
| namespace blink {
|
|
|
| -class FontPlatformFeatures {
|
| +class DartIsolateDestructionObserver {
|
| public:
|
| - static bool canExpandAroundIdeographsInComplexText();
|
| + DartIsolateDestructionObserver();
|
| + virtual ~DartIsolateDestructionObserver();
|
| +
|
| + virtual void isolateDestroyed();
|
| +
|
| + bool isIsolateAlive() { return m_isolate; }
|
| +
|
| + Dart_Isolate isolate() { return m_isolate; }
|
|
|
| private:
|
| - FontPlatformFeatures();
|
| + Dart_Isolate m_isolate;
|
| };
|
|
|
| -} // namespace blink
|
| +}
|
|
|
| -#endif // SKY_ENGINE_PLATFORM_FONTS_FONTPLATFORMFEATURES_H_
|
| +#endif // DartIsolateDestructionObserver_h
|
|
|