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

Side by Side Diff: Source/core/testing/InternalSettings.h

Issue 853483003: Add support for 'display-mode' MQ defined in Manifest spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/Settings.in ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 10 matching lines...) Expand all
21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef InternalSettings_h 27 #ifndef InternalSettings_h
28 #define InternalSettings_h 28 #define InternalSettings_h
29 29
30 #include "core/InternalSettingsGenerated.h" 30 #include "core/InternalSettingsGenerated.h"
31 #include "core/css/DisplayModeProperties.h"
31 #include "core/editing/EditingBehaviorTypes.h" 32 #include "core/editing/EditingBehaviorTypes.h"
32 #include "platform/geometry/IntSize.h" 33 #include "platform/geometry/IntSize.h"
33 #include "platform/graphics/ImageAnimationPolicy.h" 34 #include "platform/graphics/ImageAnimationPolicy.h"
34 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
35 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
36 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
37 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
38 39
39 namespace blink { 40 namespace blink {
40 41
(...skipping 17 matching lines...) Expand all
58 void restoreTo(Settings*); 59 void restoreTo(Settings*);
59 60
60 bool m_originalAuthorShadowDOMForAnyElementEnabled; 61 bool m_originalAuthorShadowDOMForAnyElementEnabled;
61 bool m_originalCSP; 62 bool m_originalCSP;
62 bool m_originalOverlayScrollbarsEnabled; 63 bool m_originalOverlayScrollbarsEnabled;
63 EditingBehaviorType m_originalEditingBehavior; 64 EditingBehaviorType m_originalEditingBehavior;
64 bool m_originalTextAutosizingEnabled; 65 bool m_originalTextAutosizingEnabled;
65 IntSize m_originalTextAutosizingWindowSizeOverride; 66 IntSize m_originalTextAutosizingWindowSizeOverride;
66 float m_originalAccessibilityFontScaleFactor; 67 float m_originalAccessibilityFontScaleFactor;
67 String m_originalMediaTypeOverride; 68 String m_originalMediaTypeOverride;
69 DisplayMode m_originalDisplayModeOverride;
68 bool m_originalMockScrollbarsEnabled; 70 bool m_originalMockScrollbarsEnabled;
69 bool m_originalMockGestureTapHighlightsEnabled; 71 bool m_originalMockGestureTapHighlightsEnabled;
70 bool m_langAttributeAwareFormControlUIEnabled; 72 bool m_langAttributeAwareFormControlUIEnabled;
71 bool m_imagesEnabled; 73 bool m_imagesEnabled;
72 String m_defaultVideoPosterURL; 74 String m_defaultVideoPosterURL;
73 bool m_originalLayerSquashingEnabled; 75 bool m_originalLayerSquashingEnabled;
74 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled ; 76 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled ;
75 bool m_originalImageColorProfilesEnabled; 77 bool m_originalImageColorProfilesEnabled;
76 ImageAnimationPolicy m_originalImageAnimationPolicy; 78 ImageAnimationPolicy m_originalImageAnimationPolicy;
77 }; 79 };
(...skipping 16 matching lines...) Expand all
94 void setSansSerifFontFamily(const AtomicString& family, const String& script , ExceptionState&); 96 void setSansSerifFontFamily(const AtomicString& family, const String& script , ExceptionState&);
95 void setFixedFontFamily(const AtomicString& family, const String& script, Ex ceptionState&); 97 void setFixedFontFamily(const AtomicString& family, const String& script, Ex ceptionState&);
96 void setCursiveFontFamily(const AtomicString& family, const String& script, ExceptionState&); 98 void setCursiveFontFamily(const AtomicString& family, const String& script, ExceptionState&);
97 void setFantasyFontFamily(const AtomicString& family, const String& script, ExceptionState&); 99 void setFantasyFontFamily(const AtomicString& family, const String& script, ExceptionState&);
98 void setPictographFontFamily(const AtomicString& family, const String& scrip t, ExceptionState&); 100 void setPictographFontFamily(const AtomicString& family, const String& scrip t, ExceptionState&);
99 101
100 void setDefaultVideoPosterURL(const String& url, ExceptionState&); 102 void setDefaultVideoPosterURL(const String& url, ExceptionState&);
101 void setEditingBehavior(const String&, ExceptionState&); 103 void setEditingBehavior(const String&, ExceptionState&);
102 void setImagesEnabled(bool, ExceptionState&); 104 void setImagesEnabled(bool, ExceptionState&);
103 void setMediaTypeOverride(const String& mediaType, ExceptionState&); 105 void setMediaTypeOverride(const String& mediaType, ExceptionState&);
106 void setDisplayModeOverride(const String& displayMode, ExceptionState&);
104 void setMockScrollbarsEnabled(bool, ExceptionState&); 107 void setMockScrollbarsEnabled(bool, ExceptionState&);
105 void setMockGestureTapHighlightsEnabled(bool, ExceptionState&); 108 void setMockGestureTapHighlightsEnabled(bool, ExceptionState&);
106 void setTextAutosizingEnabled(bool, ExceptionState&); 109 void setTextAutosizingEnabled(bool, ExceptionState&);
107 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&) ; 110 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&) ;
108 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&); 111 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&);
109 void setViewportEnabled(bool, ExceptionState&); 112 void setViewportEnabled(bool, ExceptionState&);
110 113
111 // FIXME: The following are RuntimeEnabledFeatures and likely 114 // FIXME: The following are RuntimeEnabledFeatures and likely
112 // cannot be changed after process start. These setters should 115 // cannot be changed after process start. These setters should
113 // be removed or moved onto internals.runtimeFlags: 116 // be removed or moved onto internals.runtimeFlags:
(...skipping 19 matching lines...) Expand all
133 Page* page() const { return m_page; } 136 Page* page() const { return m_page; }
134 static const char* supplementName(); 137 static const char* supplementName();
135 138
136 RawPtrWillBeWeakMember<Page> m_page; 139 RawPtrWillBeWeakMember<Page> m_page;
137 Backup m_backup; 140 Backup m_backup;
138 }; 141 };
139 142
140 } // namespace blink 143 } // namespace blink
141 144
142 #endif // InternalSettings_h 145 #endif // InternalSettings_h
OLDNEW
« no previous file with comments | « Source/core/frame/Settings.in ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698