| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sky/engine/config.h" | |
| 6 #include "sky/engine/core/dom/custom/custom_element.h" | 5 #include "sky/engine/core/dom/custom/custom_element.h" |
| 7 | 6 |
| 8 #include "base/bind.h" | 7 #include "base/bind.h" |
| 9 #include "dart/runtime/include/dart_api.h" | 8 #include "dart/runtime/include/dart_api.h" |
| 10 #include "sky/engine/core/dom/Document.h" | 9 #include "sky/engine/core/dom/Document.h" |
| 11 #include "sky/engine/core/dom/Element.h" | 10 #include "sky/engine/core/dom/Element.h" |
| 12 #include "sky/engine/core/dom/Microtask.h" | 11 #include "sky/engine/core/dom/Microtask.h" |
| 13 #include "sky/engine/core/dom/custom/custom_element_callback_scope.h" | 12 #include "sky/engine/core/dom/custom/custom_element_callback_scope.h" |
| 14 #include "sky/engine/core/dom/custom/custom_element_registry.h" | 13 #include "sky/engine/core/dom/custom/custom_element_registry.h" |
| 15 #include "sky/engine/tonic/dart_converter.h" | 14 #include "sky/engine/tonic/dart_converter.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 77 |
| 79 void CustomElement::DidAttach(Element* element, Document& document) { | 78 void CustomElement::DidAttach(Element* element, Document& document) { |
| 80 ScheduleCallback(base::Bind(CallDidAttachedCallback, element, &document)); | 79 ScheduleCallback(base::Bind(CallDidAttachedCallback, element, &document)); |
| 81 } | 80 } |
| 82 | 81 |
| 83 void CustomElement::DidDetach(Element* element, Document& document) { | 82 void CustomElement::DidDetach(Element* element, Document& document) { |
| 84 ScheduleCallback(base::Bind(CallDidDetachedCallback, element, &document)); | 83 ScheduleCallback(base::Bind(CallDidDetachedCallback, element, &document)); |
| 85 } | 84 } |
| 86 | 85 |
| 87 } // namespace blink | 86 } // namespace blink |
| OLD | NEW |