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

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

Issue 14858004: Clean up the way layout tests force elements to opt in/out of composited scrolling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void setTouchEventEmulationEnabled(bool, ExceptionCode&); 103 void setTouchEventEmulationEnabled(bool, ExceptionCode&);
104 void setUsesOverlayScrollbars(bool, ExceptionCode&); 104 void setUsesOverlayScrollbars(bool, ExceptionCode&);
105 105
106 void setShouldDisplayTrackKind(const String& kind, bool, ExceptionCode&); 106 void setShouldDisplayTrackKind(const String& kind, bool, ExceptionCode&);
107 bool shouldDisplayTrackKind(const String& kind, ExceptionCode&); 107 bool shouldDisplayTrackKind(const String& kind, ExceptionCode&);
108 108
109 // cssVariablesEnabled is not backed by RuntimeEnabledFeatures, but should b e. 109 // cssVariablesEnabled is not backed by RuntimeEnabledFeatures, but should b e.
110 bool cssVariablesEnabled(ExceptionCode&); 110 bool cssVariablesEnabled(ExceptionCode&);
111 void setCSSVariablesEnabled(bool, ExceptionCode&); 111 void setCSSVariablesEnabled(bool, ExceptionCode&);
112 112
113 // This must be kept in sync with AcceleratedCompositingForOverflowScrollEna bledMode.
114 enum {
115 AcceleratedCompositingForOverflowScrollDisabled = 0,
116 AcceleratedCompositingForOverflowScrollEnabled = 1,
117 AcceleratedCompositingForOverflowScrollAlwaysOn = 2
118 };
119 void setAcceleratedCompositingForOverflowScrollEnabledMode(unsigned enabled, ExceptionCode&);
120
113 // FIXME: The following are RuntimeEnabledFeatures and likely 121 // FIXME: The following are RuntimeEnabledFeatures and likely
114 // cannot be changed after process start. These setters should 122 // cannot be changed after process start. These setters should
115 // be removed or moved onto internals.runtimeFlags: 123 // be removed or moved onto internals.runtimeFlags:
116 void setAuthorShadowDOMForAnyElementEnabled(bool); 124 void setAuthorShadowDOMForAnyElementEnabled(bool);
117 void setCSSExclusionsEnabled(bool); 125 void setCSSExclusionsEnabled(bool);
118 void setDialogElementEnabled(bool); 126 void setDialogElementEnabled(bool);
119 void setExperimentalShadowDOMEnabled(bool); 127 void setExperimentalShadowDOMEnabled(bool);
120 void setLangAttributeAwareFormControlUIEnabled(bool); 128 void setLangAttributeAwareFormControlUIEnabled(bool);
121 void setLazyLayoutEnabled(bool); 129 void setLazyLayoutEnabled(bool);
122 void setStyleScopedEnabled(bool); 130 void setStyleScopedEnabled(bool);
123 131
124 private: 132 private:
125 explicit InternalSettings(Page*); 133 explicit InternalSettings(Page*);
126 134
127 Settings* settings() const; 135 Settings* settings() const;
128 Page* page() const { return m_page; } 136 Page* page() const { return m_page; }
129 static const char* supplementName(); 137 static const char* supplementName();
130 138
131 Page* m_page; 139 Page* m_page;
132 Backup m_backup; 140 Backup m_backup;
133 }; 141 };
134 142
135 } // namespace WebCore 143 } // namespace WebCore
136 144
137 #endif 145 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698