| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 bool m_originalCSSExclusionsEnabled; | 53 bool m_originalCSSExclusionsEnabled; |
| 54 bool m_originalCSSVariablesEnabled; | 54 bool m_originalCSSVariablesEnabled; |
| 55 bool m_originalShadowDOMEnabled; | 55 bool m_originalShadowDOMEnabled; |
| 56 bool m_originalAuthorShadowDOMForAnyElementEnabled; | 56 bool m_originalAuthorShadowDOMForAnyElementEnabled; |
| 57 bool m_originalExperimentalShadowDOMEnabled; | 57 bool m_originalExperimentalShadowDOMEnabled; |
| 58 bool m_originalStyleScoped; | 58 bool m_originalStyleScoped; |
| 59 EditingBehaviorType m_originalEditingBehavior; | 59 EditingBehaviorType m_originalEditingBehavior; |
| 60 bool m_originalTextAutosizingEnabled; | 60 bool m_originalTextAutosizingEnabled; |
| 61 IntSize m_originalTextAutosizingWindowSizeOverride; | 61 IntSize m_originalTextAutosizingWindowSizeOverride; |
| 62 float m_originalTextAutosizingFontScaleFactor; | 62 float m_originalTextAutosizingFontScaleFactor; |
| 63 IntSize m_originalResolutionOverride; | |
| 64 String m_originalMediaTypeOverride; | 63 String m_originalMediaTypeOverride; |
| 65 #if ENABLE(DIALOG_ELEMENT) | 64 #if ENABLE(DIALOG_ELEMENT) |
| 66 bool m_originalDialogElementEnabled; | 65 bool m_originalDialogElementEnabled; |
| 67 #endif | 66 #endif |
| 68 bool m_originalMockScrollbarsEnabled; | 67 bool m_originalMockScrollbarsEnabled; |
| 69 bool m_originalUsesOverlayScrollbars; | 68 bool m_originalUsesOverlayScrollbars; |
| 70 bool m_langAttributeAwareFormControlUIEnabled; | 69 bool m_langAttributeAwareFormControlUIEnabled; |
| 71 bool m_imagesEnabled; | 70 bool m_imagesEnabled; |
| 72 double m_minimumTimerInterval; | 71 double m_minimumTimerInterval; |
| 73 bool m_shouldDisplaySubtitles; | 72 bool m_shouldDisplaySubtitles; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 96 void setStandardFontFamily(const String& family, const String& script, Excep
tionCode&); | 95 void setStandardFontFamily(const String& family, const String& script, Excep
tionCode&); |
| 97 void setSerifFontFamily(const String& family, const String& script, Exceptio
nCode&); | 96 void setSerifFontFamily(const String& family, const String& script, Exceptio
nCode&); |
| 98 void setSansSerifFontFamily(const String& family, const String& script, Exce
ptionCode&); | 97 void setSansSerifFontFamily(const String& family, const String& script, Exce
ptionCode&); |
| 99 void setFixedFontFamily(const String& family, const String& script, Exceptio
nCode&); | 98 void setFixedFontFamily(const String& family, const String& script, Exceptio
nCode&); |
| 100 void setCursiveFontFamily(const String& family, const String& script, Except
ionCode&); | 99 void setCursiveFontFamily(const String& family, const String& script, Except
ionCode&); |
| 101 void setFantasyFontFamily(const String& family, const String& script, Except
ionCode&); | 100 void setFantasyFontFamily(const String& family, const String& script, Except
ionCode&); |
| 102 void setPictographFontFamily(const String& family, const String& script, Exc
eptionCode&); | 101 void setPictographFontFamily(const String& family, const String& script, Exc
eptionCode&); |
| 103 void setTextAutosizingEnabled(bool enabled, ExceptionCode&); | 102 void setTextAutosizingEnabled(bool enabled, ExceptionCode&); |
| 104 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionCod
e&); | 103 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionCod
e&); |
| 105 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionCode&)
; | 104 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionCode&)
; |
| 106 void setResolutionOverride(int dotsPerCSSInchHorizontally, int dotsPerCSSInc
hVertically, ExceptionCode&); | |
| 107 void setMediaTypeOverride(const String& mediaType, ExceptionCode&); | 105 void setMediaTypeOverride(const String& mediaType, ExceptionCode&); |
| 108 void setCSSExclusionsEnabled(bool enabled, ExceptionCode&); | 106 void setCSSExclusionsEnabled(bool enabled, ExceptionCode&); |
| 109 void setCSSVariablesEnabled(bool enabled, ExceptionCode&); | 107 void setCSSVariablesEnabled(bool enabled, ExceptionCode&); |
| 110 bool cssVariablesEnabled(ExceptionCode&); | 108 bool cssVariablesEnabled(ExceptionCode&); |
| 111 void setCanStartMedia(bool, ExceptionCode&); | 109 void setCanStartMedia(bool, ExceptionCode&); |
| 112 void setEditingBehavior(const String&, ExceptionCode&); | 110 void setEditingBehavior(const String&, ExceptionCode&); |
| 113 void setDialogElementEnabled(bool, ExceptionCode&); | 111 void setDialogElementEnabled(bool, ExceptionCode&); |
| 114 void setShouldDisplayTrackKind(const String& kind, bool enabled, ExceptionCo
de&); | 112 void setShouldDisplayTrackKind(const String& kind, bool enabled, ExceptionCo
de&); |
| 115 bool shouldDisplayTrackKind(const String& kind, ExceptionCode&); | 113 bool shouldDisplayTrackKind(const String& kind, ExceptionCode&); |
| 116 void setLangAttributeAwareFormControlUIEnabled(bool); | 114 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 117 void setImagesEnabled(bool enabled, ExceptionCode&); | 115 void setImagesEnabled(bool enabled, ExceptionCode&); |
| 118 void setMinimumTimerInterval(double intervalInSeconds, ExceptionCode&); | 116 void setMinimumTimerInterval(double intervalInSeconds, ExceptionCode&); |
| 119 void setDefaultVideoPosterURL(const String& url, ExceptionCode&); | 117 void setDefaultVideoPosterURL(const String& url, ExceptionCode&); |
| 120 | 118 |
| 121 private: | 119 private: |
| 122 explicit InternalSettings(Page*); | 120 explicit InternalSettings(Page*); |
| 123 | 121 |
| 124 Settings* settings() const; | 122 Settings* settings() const; |
| 125 Page* page() const { return m_page; } | 123 Page* page() const { return m_page; } |
| 126 static const char* supplementName(); | 124 static const char* supplementName(); |
| 127 | 125 |
| 128 Page* m_page; | 126 Page* m_page; |
| 129 Backup m_backup; | 127 Backup m_backup; |
| 130 }; | 128 }; |
| 131 | 129 |
| 132 } // namespace WebCore | 130 } // namespace WebCore |
| 133 | 131 |
| 134 #endif | 132 #endif |
| OLD | NEW |