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

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

Issue 20246002: Rename ExperimentalShadowDOM runtime feature to ShadowDOM. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/core/page/RuntimeEnabledFeatures.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 class InternalSettings : public InternalSettingsGenerated { 46 class InternalSettings : public InternalSettingsGenerated {
47 public: 47 public:
48 class Backup { 48 class Backup {
49 public: 49 public:
50 explicit Backup(Settings*); 50 explicit Backup(Settings*);
51 void restoreTo(Settings*); 51 void restoreTo(Settings*);
52 52
53 bool m_originalCSSExclusionsEnabled; 53 bool m_originalCSSExclusionsEnabled;
54 bool m_originalAuthorShadowDOMForAnyElementEnabled; 54 bool m_originalAuthorShadowDOMForAnyElementEnabled;
55 bool m_originalExperimentalShadowDOMEnabled;
56 bool m_originalExperimentalWebSocketEnabled; 55 bool m_originalExperimentalWebSocketEnabled;
57 bool m_originalStyleScoped; 56 bool m_originalStyleScoped;
58 EditingBehaviorType m_originalEditingBehavior; 57 EditingBehaviorType m_originalEditingBehavior;
59 bool m_originalTextAutosizingEnabled; 58 bool m_originalTextAutosizingEnabled;
60 IntSize m_originalTextAutosizingWindowSizeOverride; 59 IntSize m_originalTextAutosizingWindowSizeOverride;
61 float m_originalTextAutosizingFontScaleFactor; 60 float m_originalTextAutosizingFontScaleFactor;
62 String m_originalMediaTypeOverride; 61 String m_originalMediaTypeOverride;
63 bool m_originalLazyLayoutEnabled; 62 bool m_originalLazyLayoutEnabled;
64 bool m_originalMockScrollbarsEnabled; 63 bool m_originalMockScrollbarsEnabled;
65 bool m_originalUsesOverlayScrollbars; 64 bool m_originalUsesOverlayScrollbars;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 101
103 // FIXME: This is a temporary flag and should be removed once accelerated 102 // FIXME: This is a temporary flag and should be removed once accelerated
104 // overflow scroll is ready (crbug.com/254111). 103 // overflow scroll is ready (crbug.com/254111).
105 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionCode&); 104 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionCode&);
106 105
107 // FIXME: The following are RuntimeEnabledFeatures and likely 106 // FIXME: The following are RuntimeEnabledFeatures and likely
108 // cannot be changed after process start. These setters should 107 // cannot be changed after process start. These setters should
109 // be removed or moved onto internals.runtimeFlags: 108 // be removed or moved onto internals.runtimeFlags:
110 void setAuthorShadowDOMForAnyElementEnabled(bool); 109 void setAuthorShadowDOMForAnyElementEnabled(bool);
111 void setCSSExclusionsEnabled(bool); 110 void setCSSExclusionsEnabled(bool);
112 void setExperimentalShadowDOMEnabled(bool);
113 void setExperimentalWebSocketEnabled(bool); 111 void setExperimentalWebSocketEnabled(bool);
114 void setLangAttributeAwareFormControlUIEnabled(bool); 112 void setLangAttributeAwareFormControlUIEnabled(bool);
115 void setLazyLayoutEnabled(bool); 113 void setLazyLayoutEnabled(bool);
116 void setStyleScopedEnabled(bool); 114 void setStyleScopedEnabled(bool);
117 115
118 private: 116 private:
119 explicit InternalSettings(Page*); 117 explicit InternalSettings(Page*);
120 118
121 Settings* settings() const; 119 Settings* settings() const;
122 Page* page() const { return m_page; } 120 Page* page() const { return m_page; }
123 static const char* supplementName(); 121 static const char* supplementName();
124 122
125 Page* m_page; 123 Page* m_page;
126 Backup m_backup; 124 Backup m_backup;
127 }; 125 };
128 126
129 } // namespace WebCore 127 } // namespace WebCore
130 128
131 #endif 129 #endif
OLDNEW
« no previous file with comments | « Source/core/page/RuntimeEnabledFeatures.in ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698