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