| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |