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

Unified Diff: sky/engine/public/sky/sky_view.cc

Issue 1147413003: Teach sky_viewer about the new main.dart hotness (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Turn off SkyView by defaultw 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/public/sky/sky_view.h ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/sky/sky_view.cc
diff --git a/sky/engine/public/sky/sky_view.cc b/sky/engine/public/sky/sky_view.cc
index 01cbac27ac7c8a94f27554392f3c8d794c6bc6ca..117d2c47728a18c64937e4a8ebcd1d945009c6a5 100644
--- a/sky/engine/public/sky/sky_view.cc
+++ b/sky/engine/public/sky/sky_view.cc
@@ -47,7 +47,7 @@ void SkyView::SetDisplayMetrics(const SkyDisplayMetrics& metrics) {
data_->view_->setDisplayMetrics(display_metrics_);
}
-void SkyView::Load(const WebURL& url) {
+void SkyView::Load(const WebURL& url, mojo::URLResponsePtr response) {
data_->view_ = View::create(base::Bind(
&SkyView::ScheduleFrame, weak_factory_.GetWeakPtr()));
data_->view_->setDisplayMetrics(display_metrics_);
@@ -55,7 +55,7 @@ void SkyView::Load(const WebURL& url) {
dart_controller_.reset(new DartController);
dart_controller_->CreateIsolateFor(adoptPtr(new DOMDartState(nullptr)), url);
dart_controller_->InstallView(data_->view_.get());
- dart_controller_->LoadMainLibrary(url);
+ dart_controller_->LoadMainLibrary(url, response.Pass());
}
void SkyView::BeginFrame(base::TimeTicks frame_time) {
« no previous file with comments | « sky/engine/public/sky/sky_view.h ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698