| Index: sky/engine/bindings-dart/core/dart/DartCustomElementBinding.cpp
|
| diff --git a/sky/engine/core/frame/SettingsDelegate.cpp b/sky/engine/bindings-dart/core/dart/DartCustomElementBinding.cpp
|
| similarity index 77%
|
| copy from sky/engine/core/frame/SettingsDelegate.cpp
|
| copy to sky/engine/bindings-dart/core/dart/DartCustomElementBinding.cpp
|
| index b0503d946f08fee49b855cd8d6c22e0833120d1b..cc3e57863511412243b08e83dd23cbfcf8895e3a 100644
|
| --- a/sky/engine/core/frame/SettingsDelegate.cpp
|
| +++ b/sky/engine/bindings-dart/core/dart/DartCustomElementBinding.cpp
|
| @@ -28,24 +28,20 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "sky/engine/config.h"
|
| -#include "sky/engine/core/frame/SettingsDelegate.h"
|
| -
|
| -#include "sky/engine/core/frame/Settings.h"
|
| +#include "config.h"
|
| +#include "bindings/core/dart/DartCustomElementBinding.h"
|
|
|
| namespace blink {
|
|
|
| -SettingsDelegate::SettingsDelegate(PassOwnPtr<Settings> settings)
|
| - : m_settings(settings)
|
| +PassOwnPtr<DartCustomElementBinding> DartCustomElementBinding::create(Dart_Handle customType, intptr_t nativeClassId)
|
| {
|
| - if (m_settings)
|
| - m_settings->setDelegate(this);
|
| + return adoptPtr(new DartCustomElementBinding(customType, nativeClassId));
|
| }
|
|
|
| -SettingsDelegate::~SettingsDelegate()
|
| +DartCustomElementBinding::DartCustomElementBinding(Dart_Handle customType, intptr_t nativeClassId)
|
| + : m_customType(Dart_NewPersistentHandle(customType))
|
| + , m_nativeClassId(nativeClassId)
|
| {
|
| - if (m_settings)
|
| - m_settings->setDelegate(0);
|
| }
|
|
|
| } // namespace blink
|
|
|