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

Unified Diff: sky/engine/core/script/dart_controller.cc

Issue 1134913003: Teach SkyView path to draw a circle (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/script/dart_controller.h ('k') | sky/engine/core/view/View.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/script/dart_controller.cc
diff --git a/sky/engine/core/script/dart_controller.cc b/sky/engine/core/script/dart_controller.cc
index f927ebb6ed355d120a412ba1193f99f2f3bc90cf..22fe4d38f73edbcdbfb7894bd28acb4e4ee61a31 100644
--- a/sky/engine/core/script/dart_controller.cc
+++ b/sky/engine/core/script/dart_controller.cc
@@ -348,6 +348,13 @@ void DartController::CreateIsolateFor(PassOwnPtr<DOMDartState> state,
Dart_ExitIsolate();
}
+void DartController::InstallView(View* view) {
+ DartIsolateScope isolate_scope(dart_state()->isolate());
+ DartApiScope dart_api_scope;
+
+ builtin_sky_->InstallView(view);
+}
+
void DartController::ClearForClose() {
// Don't use a DartIsolateScope here since we never exit the isolate.
Dart_EnterIsolate(dom_dart_state_->isolate());
« no previous file with comments | « sky/engine/core/script/dart_controller.h ('k') | sky/engine/core/view/View.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698