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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void setInViewSourceMode(bool = true); 129 void setInViewSourceMode(bool = true);
130 130
131 void setPageZoomFactor(float factor); 131 void setPageZoomFactor(float factor);
132 float pageZoomFactor() const { return m_pageZoomFactor; } 132 float pageZoomFactor() const { return m_pageZoomFactor; }
133 void setTextZoomFactor(float factor); 133 void setTextZoomFactor(float factor);
134 float textZoomFactor() const { return m_textZoomFactor; } 134 float textZoomFactor() const { return m_textZoomFactor; }
135 void setPageAndTextZoomFactors(float pageZoomFactor, float textZoomFacto r); 135 void setPageAndTextZoomFactors(float pageZoomFactor, float textZoomFacto r);
136 136
137 void deviceOrPageScaleFactorChanged(); 137 void deviceOrPageScaleFactorChanged();
138 138
139 // Returns the resolution in device pixels per CSS pixel.
140 float resolutionDPPX() const;
141
139 #if ENABLE(ORIENTATION_EVENTS) 142 #if ENABLE(ORIENTATION_EVENTS)
140 // Orientation is the interface orientation in degrees. Some examples ar e: 143 // Orientation is the interface orientation in degrees. Some examples ar e:
141 // 0 is straight up; -90 is when the device is rotated 90 clockwise; 144 // 0 is straight up; -90 is when the device is rotated 90 clockwise;
142 // 90 is when rotated counter clockwise. 145 // 90 is when rotated counter clockwise.
143 void sendOrientationChangeEvent(int orientation); 146 void sendOrientationChangeEvent(int orientation);
144 int orientation() const { return m_orientation; } 147 int orientation() const { return m_orientation; }
145 #endif 148 #endif
146 149
147 void clearTimers(); 150 void clearTimers();
148 static void clearTimers(FrameView*, Document*); 151 static void clearTimers(FrameView*, Document*);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 278 }
276 279
277 inline EventHandler* Frame::eventHandler() const 280 inline EventHandler* Frame::eventHandler() const
278 { 281 {
279 return m_eventHandler.get(); 282 return m_eventHandler.get();
280 } 283 }
281 284
282 } // namespace WebCore 285 } // namespace WebCore
283 286
284 #endif // Frame_h 287 #endif // Frame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698