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

Unified Diff: sky/viewer/document_view.h

Issue 851533002: Scale Sky contents by the device pixel ratio (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | sky/viewer/document_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/document_view.h
diff --git a/sky/viewer/document_view.h b/sky/viewer/document_view.h
index 6494d529e7f2d9356c690b207c38519bf26e6993..98d8513ca395601467e38aab668a47bbe81c5519 100644
--- a/sky/viewer/document_view.h
+++ b/sky/viewer/document_view.h
@@ -76,6 +76,7 @@ class DocumentView : public blink::ServiceProvider,
// WebWidgetClient methods:
void initializeLayerTreeView() override;
void scheduleAnimation() override;
+ blink::WebScreenInfo screenInfo() override;
// WebFrameClient methods:
mojo::View* createChildFrame(const blink::WebURL& url) override;
@@ -115,6 +116,7 @@ class DocumentView : public blink::ServiceProvider,
void OnViewInputEvent(mojo::View* view, const mojo::EventPtr& event) override;
void Load(mojo::URLResponsePtr response);
+ float GetDevicePixelRatio() const;
mojo::URLResponsePtr response_;
mojo::ServiceProviderImpl exported_services_;
« no previous file with comments | « no previous file | sky/viewer/document_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698