| 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 #ifndef SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_ | 5 #ifndef SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_ |
| 6 #define SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_ | 6 #define SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_ |
| 7 | 7 |
| 8 #include "dart/runtime/include/dart_api.h" | 8 #include "dart/runtime/include/dart_api.h" |
| 9 #include "sky/engine/tonic/dart_state.h" | 9 #include "sky/engine/tonic/dart_state.h" |
| 10 #include "sky/engine/core/dom/Document.h" | 10 #include "sky/engine/core/dom/Document.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 static LocalFrame* CurrentFrame(); | 27 static LocalFrame* CurrentFrame(); |
| 28 static LocalDOMWindow* CurrentWindow(); | 28 static LocalDOMWindow* CurrentWindow(); |
| 29 | 29 |
| 30 const String& url() const { return url_; } | 30 const String& url() const { return url_; } |
| 31 | 31 |
| 32 Document* document() const { return document_.get(); } | 32 Document* document() const { return document_.get(); } |
| 33 | 33 |
| 34 // Cached handles to strings used in Dart/C++ conversions. | 34 // Cached handles to strings used in Dart/C++ conversions. |
| 35 Dart_Handle x_handle() { return x_handle_.value(); } | 35 Dart_Handle x_handle() { return x_handle_.value(); } |
| 36 Dart_Handle y_handle() { return y_handle_.value(); } | 36 Dart_Handle y_handle() { return y_handle_.value(); } |
| 37 Dart_Handle dx_handle() { return dx_handle_.value(); } |
| 38 Dart_Handle dy_handle() { return dy_handle_.value(); } |
| 37 Dart_Handle value_handle() { return value_handle_.value(); } | 39 Dart_Handle value_handle() { return value_handle_.value(); } |
| 38 Dart_Handle color_class() { return color_class_.value(); } | 40 Dart_Handle color_class() { return color_class_.value(); } |
| 39 | 41 |
| 40 private: | 42 private: |
| 41 RefPtr<Document> document_; | 43 RefPtr<Document> document_; |
| 42 String url_; | 44 String url_; |
| 43 | 45 |
| 44 DartPersistentValue x_handle_; | 46 DartPersistentValue x_handle_; |
| 45 DartPersistentValue y_handle_; | 47 DartPersistentValue y_handle_; |
| 48 DartPersistentValue dx_handle_; |
| 49 DartPersistentValue dy_handle_; |
| 46 DartPersistentValue value_handle_; | 50 DartPersistentValue value_handle_; |
| 47 DartPersistentValue color_class_; | 51 DartPersistentValue color_class_; |
| 48 }; | 52 }; |
| 49 | 53 |
| 50 } // namespace blink | 54 } // namespace blink |
| 51 | 55 |
| 52 #endif // SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_ | 56 #endif // SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_ |
| OLD | NEW |