Chromium Code Reviews| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 bool m_originalMockScrollbarsEnabled; | 63 bool m_originalMockScrollbarsEnabled; |
| 64 bool m_langAttributeAwareFormControlUIEnabled; | 64 bool m_langAttributeAwareFormControlUIEnabled; |
| 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 bool m_originalPreciseMemoryInfoEnabled; | |
|
abarth-chromium
2014/04/23 18:04:37
Please do not add more members here. This code is
| |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) | 76 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) |
| 76 { | 77 { |
| 77 return adoptRefWillBeNoop(new InternalSettings(page)); | 78 return adoptRefWillBeNoop(new InternalSettings(page)); |
| 78 } | 79 } |
| 79 static InternalSettings* from(Page&); | 80 static InternalSettings* from(Page&); |
| 80 void hostDestroyed() { m_page = 0; } | 81 void hostDestroyed() { m_page = 0; } |
| 81 | 82 |
| 82 virtual ~InternalSettings(); | 83 virtual ~InternalSettings(); |
| 83 void resetToConsistentState(); | 84 void resetToConsistentState(); |
| 84 | 85 |
| 85 void setStandardFontFamily(const AtomicString& family, const String& script, ExceptionState&); | 86 void setStandardFontFamily(const AtomicString& family, const String& script, ExceptionState&); |
| 86 void setSerifFontFamily(const AtomicString& family, const String& script, Ex ceptionState&); | 87 void setSerifFontFamily(const AtomicString& family, const String& script, Ex ceptionState&); |
| 87 void setSansSerifFontFamily(const AtomicString& family, const String& script , ExceptionState&); | 88 void setSansSerifFontFamily(const AtomicString& family, const String& script , ExceptionState&); |
| 88 void setFixedFontFamily(const AtomicString& family, const String& script, Ex ceptionState&); | 89 void setFixedFontFamily(const AtomicString& family, const String& script, Ex ceptionState&); |
| 89 void setCursiveFontFamily(const AtomicString& family, const String& script, ExceptionState&); | 90 void setCursiveFontFamily(const AtomicString& family, const String& script, ExceptionState&); |
| 90 void setFantasyFontFamily(const AtomicString& family, const String& script, ExceptionState&); | 91 void setFantasyFontFamily(const AtomicString& family, const String& script, ExceptionState&); |
| 91 void setPictographFontFamily(const AtomicString& family, const String& scrip t, ExceptionState&); | 92 void setPictographFontFamily(const AtomicString& family, const String& scrip t, ExceptionState&); |
| 92 | 93 |
| 93 void setDefaultVideoPosterURL(const String& url, ExceptionState&); | 94 void setDefaultVideoPosterURL(const String& url, ExceptionState&); |
| 94 void setEditingBehavior(const String&, ExceptionState&); | 95 void setEditingBehavior(const String&, ExceptionState&); |
| 95 void setImagesEnabled(bool, ExceptionState&); | 96 void setImagesEnabled(bool, ExceptionState&); |
| 96 void setMediaTypeOverride(const String& mediaType, ExceptionState&); | 97 void setMediaTypeOverride(const String& mediaType, ExceptionState&); |
| 97 void setMockScrollbarsEnabled(bool, ExceptionState&); | 98 void setMockScrollbarsEnabled(bool, ExceptionState&); |
| 98 void setPasswordGenerationDecorationEnabled(bool, ExceptionState&); | 99 void setPasswordGenerationDecorationEnabled(bool, ExceptionState&); |
| 100 void setPreciseMemoryInfoEnabled(bool, ExceptionState&); | |
| 99 void setTextAutosizingEnabled(bool, ExceptionState&); | 101 void setTextAutosizingEnabled(bool, ExceptionState&); |
| 100 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&) ; | 102 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&) ; |
| 101 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&); | 103 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&); |
| 102 void setTouchEventEmulationEnabled(bool, ExceptionState&); | 104 void setTouchEventEmulationEnabled(bool, ExceptionState&); |
| 103 void setViewportEnabled(bool, ExceptionState&); | 105 void setViewportEnabled(bool, ExceptionState&); |
| 104 | 106 |
| 105 // FIXME: This is a temporary flag and should be removed once accelerated | 107 // FIXME: This is a temporary flag and should be removed once accelerated |
| 106 // overflow scroll is ready (crbug.com/254111). | 108 // overflow scroll is ready (crbug.com/254111). |
| 107 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionState&); | 109 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionState&); |
| 108 | 110 |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 129 Page* page() const { return m_page; } | 131 Page* page() const { return m_page; } |
| 130 static const char* supplementName(); | 132 static const char* supplementName(); |
| 131 | 133 |
| 132 Page* m_page; | 134 Page* m_page; |
| 133 Backup m_backup; | 135 Backup m_backup; |
| 134 }; | 136 }; |
| 135 | 137 |
| 136 } // namespace WebCore | 138 } // namespace WebCore |
| 137 | 139 |
| 138 #endif | 140 #endif |
| OLD | NEW |