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

Unified Diff: Source/core/page/Frame.h

Issue 23192002: Let page zoom affect resolution and -webkit-device-pixel-ratio MQs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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
Index: Source/core/page/Frame.h
diff --git a/Source/core/page/Frame.h b/Source/core/page/Frame.h
index 47fdc5a1275891106f5e42c660a8e8b542016a08..b954a8d04052f9468d3cbdedb02e8041ce4113cb 100644
--- a/Source/core/page/Frame.h
+++ b/Source/core/page/Frame.h
@@ -136,6 +136,9 @@ namespace WebCore {
void deviceOrPageScaleFactorChanged();
+ // Returns the resolution in device pixels per CSS pixel.
+ float resolutionDPPX() const;
+
#if ENABLE(ORIENTATION_EVENTS)
// Orientation is the interface orientation in degrees. Some examples are:
// 0 is straight up; -90 is when the device is rotated 90 clockwise;

Powered by Google App Engine
This is Rietveld 408576698