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

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

Issue 1203143004: Make it possible to run Sky apps offline (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: gn check 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/linux/main.cc ('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 f11960590ed76625621412d08ad023c82f3d2a8c..cfaf073695f3575cf1668d848689f661f2c8a218 100644
--- a/sky/shell/ui/engine.h
+++ b/sky/shell/ui/engine.h
@@ -69,7 +69,11 @@ class Engine : public UIDelegate,
void OnViewportMetricsChanged(int width, int height,
float device_pixel_ratio) override;
void OnInputEvent(InputEventPtr event) override;
- void LoadURL(const mojo::String& url) override;
+
+ void RunFromNetwork(const mojo::String& url) override;
+ void RunFromFile(const mojo::String& main,
+ const mojo::String& package_root) override;
+ void RunFromSnapshot(mojo::ScopedDataPipeConsumerHandle snapshot) override;
// WebViewClient methods:
void frameDetached(blink::WebFrame*) override;
@@ -95,12 +99,17 @@ class Engine : public UIDelegate,
void DidNavigateLocally(const mojo::String& url) override;
void RequestNavigateHistory(int32_t delta) override;
+ void RunFromLibrary(const mojo::String& name);
+ void CloseWebViewIfNeeded();
+ void LoadUsingWebView(const mojo::String& mojo_url);
+
void UpdateSkyViewSize();
void UpdateWebViewSize();
Config config_;
scoped_ptr<Animator> animator_;
+ scoped_ptr<blink::DartLibraryProvider> dart_library_provider_;
std::unique_ptr<blink::SkyView> sky_view_;
blink::WebView* web_view_;
« no previous file with comments | « sky/shell/linux/main.cc ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698