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

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

Issue 1161273004: Add a Color class to dart:sky. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: 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
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 17 matching lines...) Expand all
28 static LocalFrame* CurrentFrame(); 28 static LocalFrame* CurrentFrame();
29 static LocalDOMWindow* CurrentWindow(); 29 static LocalDOMWindow* CurrentWindow();
30 30
31 Document* document() const { return document_.get(); } 31 Document* document() const { return document_.get(); }
32 DartLoader& loader() const { return *loader_; } 32 DartLoader& loader() const { return *loader_; }
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 value_handle() { return value_handle_.value(); } 37 Dart_Handle value_handle() { return value_handle_.value(); }
38 Dart_Handle color_class() { return color_class_.value(); }
38 39
39 private: 40 private:
40 RefPtr<Document> document_; 41 RefPtr<Document> document_;
41 OwnPtr<DartLoader> loader_; 42 OwnPtr<DartLoader> loader_;
42 43
43 DartPersistentValue x_handle_; 44 DartPersistentValue x_handle_;
44 DartPersistentValue y_handle_; 45 DartPersistentValue y_handle_;
45 DartPersistentValue value_handle_; 46 DartPersistentValue value_handle_;
47 DartPersistentValue color_class_;
46 }; 48 };
47 49
48 } // namespace blink 50 } // namespace blink
49 51
50 #endif // SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_ 52 #endif // SKY_ENGINE_CORE_SCRIPT_DOM_DART_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698