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

Side by Side Diff: sky/engine/core/script/dom_dart_state.h

Issue 1170963003: Sky: Add a DartConverterEnum and use that for all our enum needs. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: 360 no scope Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/painting/TransferMode.cpp ('k') | sky/engine/core/script/dom_dart_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 18 matching lines...) Expand all
29 static LocalDOMWindow* CurrentWindow(); 29 static LocalDOMWindow* CurrentWindow();
30 30
31 const KURL& url() const { return url_; } 31 const KURL& url() const { return url_; }
32 32
33 Document* document() const { return document_.get(); } 33 Document* document() const { return document_.get(); }
34 DartLoader& loader() const { return *loader_; } 34 DartLoader& loader() const { return *loader_; }
35 35
36 // Cached handles to strings used in Dart/C++ conversions. 36 // Cached handles to strings used in Dart/C++ conversions.
37 Dart_Handle x_handle() { return x_handle_.value(); } 37 Dart_Handle x_handle() { return x_handle_.value(); }
38 Dart_Handle y_handle() { return y_handle_.value(); } 38 Dart_Handle y_handle() { return y_handle_.value(); }
39 Dart_Handle index_handle() { return index_handle_.value(); }
40 Dart_Handle value_handle() { return value_handle_.value(); } 39 Dart_Handle value_handle() { return value_handle_.value(); }
41 Dart_Handle color_class() { return color_class_.value(); } 40 Dart_Handle color_class() { return color_class_.value(); }
42 41
43 private: 42 private:
44 RefPtr<Document> document_; 43 RefPtr<Document> document_;
45 KURL url_; 44 KURL url_;
46 OwnPtr<DartLoader> loader_; 45 OwnPtr<DartLoader> loader_;
47 46
48 DartPersistentValue x_handle_; 47 DartPersistentValue x_handle_;
49 DartPersistentValue y_handle_; 48 DartPersistentValue y_handle_;
50 DartPersistentValue index_handle_;
51 DartPersistentValue value_handle_; 49 DartPersistentValue value_handle_;
52 DartPersistentValue color_class_; 50 DartPersistentValue color_class_;
53 }; 51 };
54 52
55 } // namespace blink 53 } // namespace blink
56 54
57 #endif // SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_ 55 #endif // SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/painting/TransferMode.cpp ('k') | sky/engine/core/script/dom_dart_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698