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

Unified Diff: sky/engine/bindings-dart/core/dart/DartCustomElementBinding.cpp

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

Powered by Google App Engine
This is Rietveld 408576698