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

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

Issue 23691017: [Android WebView] Treat zero values in viewport arguments specially (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/ViewportArguments.cpp » ('j') | Source/web/WebSettingsImpl.h » ('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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 struct ViewportArguments { 48 struct ViewportArguments {
49 49
50 enum Type { 50 enum Type {
51 // These are ordered in increasing importance. 51 // These are ordered in increasing importance.
52 Implicit, 52 Implicit,
53 XHTMLMobileProfile, 53 XHTMLMobileProfile,
54 HandheldFriendlyMeta, 54 HandheldFriendlyMeta,
55 MobileOptimizedMeta, 55 MobileOptimizedMeta,
56 ViewportMeta, 56 ViewportMeta,
57 ViewportMetaLayoutSizeQuirk, 57 ViewportMetaLayoutSizeAndZeroValuesQuirk,
rune 2013/09/02 06:25:14 Is it important that these quirks can be turned on
kenneth.r.christiansen 2013/09/02 06:45:04 I would also really like to have these be runtime
mnaganov (inactive) 2013/09/02 13:25:53 No. We can assume that they are constant during th
58 CSSDeviceAdaptation 58 CSSDeviceAdaptation
59 } type; 59 } type;
60 60
61 enum { 61 enum {
62 ValueAuto = -1, 62 ValueAuto = -1,
63 ValueDeviceWidth = -2, 63 ValueDeviceWidth = -2,
64 ValueDeviceHeight = -3, 64 ValueDeviceHeight = -3,
65 ValuePortrait = -4, 65 ValuePortrait = -4,
66 ValueLandscape = -5, 66 ValueLandscape = -5,
67 ValueDeviceDPI = -6, 67 ValueDeviceDPI = -6,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 return !(*this == other); 127 return !(*this == other);
128 } 128 }
129 }; 129 };
130 130
131 void setViewportFeature(const String& keyString, const String& valueString, Docu ment*, void* data); 131 void setViewportFeature(const String& keyString, const String& valueString, Docu ment*, void* data);
132 void reportViewportWarning(Document*, ViewportErrorCode, const String& replaceme nt1, const String& replacement2); 132 void reportViewportWarning(Document*, ViewportErrorCode, const String& replaceme nt1, const String& replacement2);
133 133
134 } // namespace WebCore 134 } // namespace WebCore
135 135
136 #endif // ViewportArguments_h 136 #endif // ViewportArguments_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/ViewportArguments.cpp » ('j') | Source/web/WebSettingsImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698