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

Side by Side Diff: Source/core/dom/ViewportDescription.h

Issue 49913005: Add Settings::deviceScaleAdjustment. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments. Created 7 years, 1 month 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
« no previous file with comments | « no previous file | Source/core/page/Settings.h » ('j') | Source/core/rendering/TextAutosizer.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 && deprecatedTargetDensityDPI == other.deprecatedTargetDensityDPI; 99 && deprecatedTargetDensityDPI == other.deprecatedTargetDensityDPI;
100 } 100 }
101 101
102 bool operator!=(const ViewportDescription& other) const 102 bool operator!=(const ViewportDescription& other) const
103 { 103 {
104 return !(*this == other); 104 return !(*this == other);
105 } 105 }
106 106
107 bool isLegacyViewportType() const { return type >= HandheldFriendlyMeta && t ype <= ViewportMeta; } 107 bool isLegacyViewportType() const { return type >= HandheldFriendlyMeta && t ype <= ViewportMeta; }
108 bool isMetaViewportType() const { return type == ViewportMeta; } 108 bool isMetaViewportType() const { return type == ViewportMeta; }
109 bool isSpecifiedByAuthor() const { return type != UserAgentStyleSheet; }
109 110
110 private: 111 private:
111 enum Direction { Horizontal, Vertical }; 112 enum Direction { Horizontal, Vertical };
112 static float resolveViewportLength(const Length&, const FloatSize& initialVi ewportSize, Direction); 113 static float resolveViewportLength(const Length&, const FloatSize& initialVi ewportSize, Direction);
113 }; 114 };
114 115
115 } // namespace WebCore 116 } // namespace WebCore
116 117
117 #endif // ViewportDescription_h 118 #endif // ViewportDescription_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/Settings.h » ('j') | Source/core/rendering/TextAutosizer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698