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

Unified Diff: sky/shell/ui/engine.h

Issue 1221033006: Teach Stocks.apk how to load a skyx bundle (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: again 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/shell/android/org/domokit/sky/shell/SkyApplication.java ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ui/engine.h
diff --git a/sky/shell/ui/engine.h b/sky/shell/ui/engine.h
index 6677019d815fe41e1d2fdcefe5bf7855d8b43c99..ebb605cb83a7eb60e38177f3a05dbcdc156277ea 100644
--- a/sky/shell/ui/engine.h
+++ b/sky/shell/ui/engine.h
@@ -12,6 +12,7 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/public/interfaces/application/service_provider.mojom.h"
+#include "mojo/services/asset_bundle/public/interfaces/asset_bundle.mojom.h"
#include "mojo/services/navigation/public/interfaces/navigation.mojom.h"
#include "skia/ext/refptr.h"
#include "sky/engine/public/platform/ServiceProvider.h"
@@ -69,6 +70,7 @@ class Engine : public UIDelegate,
void RunFromFile(const mojo::String& main,
const mojo::String& package_root) override;
void RunFromSnapshot(const mojo::String& path) override;
+ void RunFromBundle(const mojo::String& path) override;
// SkyViewClient methods:
void ScheduleFrame() override;
@@ -83,13 +85,16 @@ class Engine : public UIDelegate,
void DidNavigateLocally(const mojo::String& url) override;
void RequestNavigateHistory(int32_t delta) override;
- void RunFromLibrary(const mojo::String& name);
+ void RunFromLibrary(const std::string& name);
+ void RunFromSnapshotStream(const std::string& name,
+ mojo::ScopedDataPipeConsumerHandle snapshot);
void UpdateSkyViewSize();
Config config_;
scoped_ptr<Animator> animator_;
+ mojo::asset_bundle::AssetBundlePtr root_bundle_;
scoped_ptr<blink::DartLibraryProvider> dart_library_provider_;
std::unique_ptr<blink::SkyView> sky_view_;
« no previous file with comments | « sky/shell/android/org/domokit/sky/shell/SkyApplication.java ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698