| 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/painting/Point.h" | 5 #include "sky/engine/core/painting/Point.h" |
| 7 | 6 |
| 8 #include "sky/engine/core/script/dom_dart_state.h" | 7 #include "sky/engine/core/script/dom_dart_state.h" |
| 9 #include "sky/engine/tonic/dart_error.h" | 8 #include "sky/engine/tonic/dart_error.h" |
| 10 #include "base/logging.h" | 9 #include "base/logging.h" |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 | 12 |
| 14 // Convert handle.x,y ==> SkPoint. | 13 // Convert handle.x,y ==> SkPoint. |
| 15 Point DartConverter<Point>::FromDart(Dart_Handle handle) { | 14 Point DartConverter<Point>::FromDart(Dart_Handle handle) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 } | 33 } |
| 35 | 34 |
| 36 Point DartConverter<Point>::FromArgumentsWithNullCheck( | 35 Point DartConverter<Point>::FromArgumentsWithNullCheck( |
| 37 Dart_NativeArguments args, | 36 Dart_NativeArguments args, |
| 38 int index, | 37 int index, |
| 39 Dart_Handle& exception) { | 38 Dart_Handle& exception) { |
| 40 return FromDart(Dart_GetNativeArgument(args, index)); | 39 return FromDart(Dart_GetNativeArgument(args, index)); |
| 41 } | 40 } |
| 42 | 41 |
| 43 } // namespace blink | 42 } // namespace blink |
| OLD | NEW |