| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 bool m_imagesEnabled; | 65 bool m_imagesEnabled; |
| 66 bool m_shouldDisplaySubtitles; | 66 bool m_shouldDisplaySubtitles; |
| 67 bool m_shouldDisplayCaptions; | 67 bool m_shouldDisplayCaptions; |
| 68 bool m_shouldDisplayTextDescriptions; | 68 bool m_shouldDisplayTextDescriptions; |
| 69 String m_defaultVideoPosterURL; | 69 String m_defaultVideoPosterURL; |
| 70 bool m_originalCompositorDrivenAcceleratedScrollEnabled; | 70 bool m_originalCompositorDrivenAcceleratedScrollEnabled; |
| 71 bool m_originalLayerSquashingEnabled; | 71 bool m_originalLayerSquashingEnabled; |
| 72 bool m_originalPasswordGenerationDecorationEnabled; | 72 bool m_originalPasswordGenerationDecorationEnabled; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 static PassRefPtr<InternalSettings> create(Page* page) | 75 static PassRefPtr<InternalSettings> create(Page& page) |
| 76 { | 76 { |
| 77 return adoptRef(new InternalSettings(page)); | 77 return adoptRef(new InternalSettings(page)); |
| 78 } | 78 } |
| 79 static InternalSettings* from(Page*); | 79 static InternalSettings* from(Page&); |
| 80 void hostDestroyed() { m_page = 0; } | 80 void hostDestroyed() { m_page = 0; } |
| 81 | 81 |
| 82 virtual ~InternalSettings(); | 82 virtual ~InternalSettings(); |
| 83 void resetToConsistentState(); | 83 void resetToConsistentState(); |
| 84 | 84 |
| 85 void setStandardFontFamily(const AtomicString& family, const String& script,
ExceptionState&); | 85 void setStandardFontFamily(const AtomicString& family, const String& script,
ExceptionState&); |
| 86 void setSerifFontFamily(const AtomicString& family, const String& script, Ex
ceptionState&); | 86 void setSerifFontFamily(const AtomicString& family, const String& script, Ex
ceptionState&); |
| 87 void setSansSerifFontFamily(const AtomicString& family, const String& script
, ExceptionState&); | 87 void setSansSerifFontFamily(const AtomicString& family, const String& script
, ExceptionState&); |
| 88 void setFixedFontFamily(const AtomicString& family, const String& script, Ex
ceptionState&); | 88 void setFixedFontFamily(const AtomicString& family, const String& script, Ex
ceptionState&); |
| 89 void setCursiveFontFamily(const AtomicString& family, const String& script,
ExceptionState&); | 89 void setCursiveFontFamily(const AtomicString& family, const String& script,
ExceptionState&); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 115 // be removed or moved onto internals.runtimeFlags: | 115 // be removed or moved onto internals.runtimeFlags: |
| 116 void setAuthorShadowDOMForAnyElementEnabled(bool); | 116 void setAuthorShadowDOMForAnyElementEnabled(bool); |
| 117 void setCSSExclusionsEnabled(bool); | 117 void setCSSExclusionsEnabled(bool); |
| 118 void setExperimentalWebSocketEnabled(bool); | 118 void setExperimentalWebSocketEnabled(bool); |
| 119 void setLangAttributeAwareFormControlUIEnabled(bool); | 119 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 120 void setOverlayScrollbarsEnabled(bool); | 120 void setOverlayScrollbarsEnabled(bool); |
| 121 void setStyleScopedEnabled(bool); | 121 void setStyleScopedEnabled(bool); |
| 122 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); | 122 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 explicit InternalSettings(Page*); | 125 explicit InternalSettings(Page&); |
| 126 | 126 |
| 127 Settings* settings() const; | 127 Settings* settings() const; |
| 128 Page* page() const { return m_page; } | 128 Page* page() const { return m_page; } |
| 129 static const char* supplementName(); | 129 static const char* supplementName(); |
| 130 | 130 |
| 131 Page* m_page; | 131 Page* m_page; |
| 132 Backup m_backup; | 132 Backup m_backup; |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace WebCore | 135 } // namespace WebCore |
| 136 | 136 |
| 137 #endif | 137 #endif |
| OLD | NEW |