| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 float m_originalAccessibilityFontScaleFactor; | 60 float m_originalAccessibilityFontScaleFactor; |
| 61 String m_originalMediaTypeOverride; | 61 String m_originalMediaTypeOverride; |
| 62 bool m_originalMockScrollbarsEnabled; | 62 bool m_originalMockScrollbarsEnabled; |
| 63 bool m_langAttributeAwareFormControlUIEnabled; | 63 bool m_langAttributeAwareFormControlUIEnabled; |
| 64 bool m_imagesEnabled; | 64 bool m_imagesEnabled; |
| 65 bool m_shouldDisplaySubtitles; | 65 bool m_shouldDisplaySubtitles; |
| 66 bool m_shouldDisplayCaptions; | 66 bool m_shouldDisplayCaptions; |
| 67 bool m_shouldDisplayTextDescriptions; | 67 bool m_shouldDisplayTextDescriptions; |
| 68 String m_defaultVideoPosterURL; | 68 String m_defaultVideoPosterURL; |
| 69 bool m_originalCompositorDrivenAcceleratedScrollEnabled; | 69 bool m_originalCompositorDrivenAcceleratedScrollEnabled; |
| 70 bool m_originalLayerSquashingEnabled; |
| 70 bool m_originalPasswordGenerationDecorationEnabled; | 71 bool m_originalPasswordGenerationDecorationEnabled; |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 static PassRefPtr<InternalSettings> create(Page* page) | 74 static PassRefPtr<InternalSettings> create(Page* page) |
| 74 { | 75 { |
| 75 return adoptRef(new InternalSettings(page)); | 76 return adoptRef(new InternalSettings(page)); |
| 76 } | 77 } |
| 77 static InternalSettings* from(Page*); | 78 static InternalSettings* from(Page*); |
| 78 void hostDestroyed() { m_page = 0; } | 79 void hostDestroyed() { m_page = 0; } |
| 79 | 80 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 97 void setTextAutosizingEnabled(bool, ExceptionState&); | 98 void setTextAutosizingEnabled(bool, ExceptionState&); |
| 98 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&)
; | 99 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&)
; |
| 99 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta
te&); | 100 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta
te&); |
| 100 void setTouchEventEmulationEnabled(bool, ExceptionState&); | 101 void setTouchEventEmulationEnabled(bool, ExceptionState&); |
| 101 void setViewportEnabled(bool, ExceptionState&); | 102 void setViewportEnabled(bool, ExceptionState&); |
| 102 | 103 |
| 103 // FIXME: This is a temporary flag and should be removed once accelerated | 104 // FIXME: This is a temporary flag and should be removed once accelerated |
| 104 // overflow scroll is ready (crbug.com/254111). | 105 // overflow scroll is ready (crbug.com/254111). |
| 105 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionState&); | 106 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionState&); |
| 106 | 107 |
| 108 // FIXME: This is a temporary flag and should be removed once squashing is |
| 109 // ready (crbug.com/261605). |
| 110 void setLayerSquashingEnabled(bool, ExceptionState&); |
| 111 |
| 107 // FIXME: The following are RuntimeEnabledFeatures and likely | 112 // FIXME: The following are RuntimeEnabledFeatures and likely |
| 108 // cannot be changed after process start. These setters should | 113 // cannot be changed after process start. These setters should |
| 109 // be removed or moved onto internals.runtimeFlags: | 114 // be removed or moved onto internals.runtimeFlags: |
| 110 void setAuthorShadowDOMForAnyElementEnabled(bool); | 115 void setAuthorShadowDOMForAnyElementEnabled(bool); |
| 111 void setCSSExclusionsEnabled(bool); | 116 void setCSSExclusionsEnabled(bool); |
| 112 void setExperimentalWebSocketEnabled(bool); | 117 void setExperimentalWebSocketEnabled(bool); |
| 113 void setLangAttributeAwareFormControlUIEnabled(bool); | 118 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 114 void setOverlayScrollbarsEnabled(bool); | 119 void setOverlayScrollbarsEnabled(bool); |
| 115 void setStyleScopedEnabled(bool); | 120 void setStyleScopedEnabled(bool); |
| 116 | 121 |
| 117 private: | 122 private: |
| 118 explicit InternalSettings(Page*); | 123 explicit InternalSettings(Page*); |
| 119 | 124 |
| 120 Settings* settings() const; | 125 Settings* settings() const; |
| 121 Page* page() const { return m_page; } | 126 Page* page() const { return m_page; } |
| 122 static const char* supplementName(); | 127 static const char* supplementName(); |
| 123 | 128 |
| 124 Page* m_page; | 129 Page* m_page; |
| 125 Backup m_backup; | 130 Backup m_backup; |
| 126 }; | 131 }; |
| 127 | 132 |
| 128 } // namespace WebCore | 133 } // namespace WebCore |
| 129 | 134 |
| 130 #endif | 135 #endif |
| OLD | NEW |