| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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" | 5 #include "sky/engine/config.h" |
| 6 #include "sky/engine/bindings2/builtin_natives.h" | 6 #include "sky/engine/bindings/builtin_natives.h" |
| 7 | 7 |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "dart/runtime/include/dart_api.h" | 15 #include "dart/runtime/include/dart_api.h" |
| 16 #include "sky/engine/bindings2/builtin.h" | 16 #include "sky/engine/bindings/builtin.h" |
| 17 #include "sky/engine/core/dom/Microtask.h" | 17 #include "sky/engine/core/dom/Microtask.h" |
| 18 #include "sky/engine/core/script/dom_dart_state.h" | 18 #include "sky/engine/core/script/dom_dart_state.h" |
| 19 #include "sky/engine/tonic/dart_api_scope.h" | 19 #include "sky/engine/tonic/dart_api_scope.h" |
| 20 #include "sky/engine/tonic/dart_builtin.h" | 20 #include "sky/engine/tonic/dart_builtin.h" |
| 21 #include "sky/engine/tonic/dart_error.h" | 21 #include "sky/engine/tonic/dart_error.h" |
| 22 #include "sky/engine/tonic/dart_isolate_scope.h" | 22 #include "sky/engine/tonic/dart_isolate_scope.h" |
| 23 #include "sky/engine/tonic/dart_state.h" | 23 #include "sky/engine/tonic/dart_state.h" |
| 24 #include "sky/engine/tonic/dart_value.h" | 24 #include "sky/engine/tonic/dart_value.h" |
| 25 #include "sky/engine/wtf/text/WTFString.h" | 25 #include "sky/engine/wtf/text/WTFString.h" |
| 26 | 26 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 void Timer_cancel(Dart_NativeArguments args) { | 177 void Timer_cancel(Dart_NativeArguments args) { |
| 178 int64_t timer_id = 0; | 178 int64_t timer_id = 0; |
| 179 DART_CHECK_VALID(Dart_GetNativeIntegerArgument(args, 0, &timer_id)); | 179 DART_CHECK_VALID(Dart_GetNativeIntegerArgument(args, 0, &timer_id)); |
| 180 | 180 |
| 181 DOMDartState* state = DOMDartState::Current(); | 181 DOMDartState* state = DOMDartState::Current(); |
| 182 DOMTimer::removeByID(state->document(), timer_id); | 182 DOMTimer::removeByID(state->document(), timer_id); |
| 183 } | 183 } |
| 184 | 184 |
| 185 } // namespace blink | 185 } // namespace blink |
| OLD | NEW |