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

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

Issue 1129673002: Remove support for pseudo classes in <content select>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix more tests. Created 5 years, 7 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 IntSize m_originalTextAutosizingWindowSizeOverride; 67 IntSize m_originalTextAutosizingWindowSizeOverride;
68 float m_originalAccessibilityFontScaleFactor; 68 float m_originalAccessibilityFontScaleFactor;
69 String m_originalMediaTypeOverride; 69 String m_originalMediaTypeOverride;
70 WebDisplayMode m_originalDisplayModeOverride; 70 WebDisplayMode m_originalDisplayModeOverride;
71 bool m_originalMockScrollbarsEnabled; 71 bool m_originalMockScrollbarsEnabled;
72 bool m_originalMockGestureTapHighlightsEnabled; 72 bool m_originalMockGestureTapHighlightsEnabled;
73 bool m_langAttributeAwareFormControlUIEnabled; 73 bool m_langAttributeAwareFormControlUIEnabled;
74 bool m_imagesEnabled; 74 bool m_imagesEnabled;
75 String m_defaultVideoPosterURL; 75 String m_defaultVideoPosterURL;
76 bool m_originalLayerSquashingEnabled; 76 bool m_originalLayerSquashingEnabled;
77 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled ;
78 bool m_originalImageColorProfilesEnabled; 77 bool m_originalImageColorProfilesEnabled;
79 ImageAnimationPolicy m_originalImageAnimationPolicy; 78 ImageAnimationPolicy m_originalImageAnimationPolicy;
80 bool m_originalScrollTopLeftInteropEnabled; 79 bool m_originalScrollTopLeftInteropEnabled;
81 }; 80 };
82 81
83 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) 82 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page)
84 { 83 {
85 return adoptRefWillBeNoop(new InternalSettings(page)); 84 return adoptRefWillBeNoop(new InternalSettings(page));
86 } 85 }
87 static InternalSettings* from(Page&); 86 static InternalSettings* from(Page&);
(...skipping 26 matching lines...) Expand all
114 void setViewportEnabled(bool, ExceptionState&); 113 void setViewportEnabled(bool, ExceptionState&);
115 void setViewportMetaEnabled(bool, ExceptionState&); 114 void setViewportMetaEnabled(bool, ExceptionState&);
116 115
117 // FIXME: The following are RuntimeEnabledFeatures and likely 116 // FIXME: The following are RuntimeEnabledFeatures and likely
118 // cannot be changed after process start. These setters should 117 // cannot be changed after process start. These setters should
119 // be removed or moved onto internals.runtimeFlags: 118 // be removed or moved onto internals.runtimeFlags:
120 void setAuthorShadowDOMForAnyElementEnabled(bool); 119 void setAuthorShadowDOMForAnyElementEnabled(bool);
121 void setLangAttributeAwareFormControlUIEnabled(bool); 120 void setLangAttributeAwareFormControlUIEnabled(bool);
122 void setOverlayScrollbarsEnabled(bool); 121 void setOverlayScrollbarsEnabled(bool);
123 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); 122 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool);
124 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool);
125 void setImageColorProfilesEnabled(bool); 123 void setImageColorProfilesEnabled(bool);
126 void setImageAnimationPolicy(const String&, ExceptionState&); 124 void setImageAnimationPolicy(const String&, ExceptionState&);
127 void setScrollTopLeftInteropEnabled(bool); 125 void setScrollTopLeftInteropEnabled(bool);
128 void setLinkHeaderEnabled(bool); 126 void setLinkHeaderEnabled(bool);
129 127
130 DECLARE_VIRTUAL_TRACE(); 128 DECLARE_VIRTUAL_TRACE();
131 129
132 void setAvailablePointerTypes(const String&, ExceptionState&); 130 void setAvailablePointerTypes(const String&, ExceptionState&);
133 void setPrimaryPointerType(const String&, ExceptionState&); 131 void setPrimaryPointerType(const String&, ExceptionState&);
134 void setAvailableHoverTypes(const String&, ExceptionState&); 132 void setAvailableHoverTypes(const String&, ExceptionState&);
135 void setPrimaryHoverType(const String&, ExceptionState&); 133 void setPrimaryHoverType(const String&, ExceptionState&);
136 void setDnsPrefetchLogging(bool, ExceptionState&); 134 void setDnsPrefetchLogging(bool, ExceptionState&);
137 void setPreloadLogging(bool, ExceptionState&); 135 void setPreloadLogging(bool, ExceptionState&);
138 136
139 private: 137 private:
140 explicit InternalSettings(Page&); 138 explicit InternalSettings(Page&);
141 139
142 Settings* settings() const; 140 Settings* settings() const;
143 Page* page() const { return m_page; } 141 Page* page() const { return m_page; }
144 static const char* supplementName(); 142 static const char* supplementName();
145 143
146 RawPtrWillBeWeakMember<Page> m_page; 144 RawPtrWillBeWeakMember<Page> m_page;
147 Backup m_backup; 145 Backup m_backup;
148 }; 146 };
149 147
150 } // namespace blink 148 } // namespace blink
151 149
152 #endif // InternalSettings_h 150 #endif // InternalSettings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698