OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 , m_isJavaEnabled(false) | 129 , m_isJavaEnabled(false) |
130 , m_loadsImagesAutomatically(false) | 130 , m_loadsImagesAutomatically(false) |
131 , m_loadsSiteIconsIgnoringImageLoadingSetting(false) | 131 , m_loadsSiteIconsIgnoringImageLoadingSetting(false) |
132 , m_privateBrowsingEnabled(false) | 132 , m_privateBrowsingEnabled(false) |
133 , m_caretBrowsingEnabled(false) | 133 , m_caretBrowsingEnabled(false) |
134 , m_areImagesEnabled(true) | 134 , m_areImagesEnabled(true) |
135 , m_isMediaEnabled(true) | 135 , m_isMediaEnabled(true) |
136 , m_arePluginsEnabled(false) | 136 , m_arePluginsEnabled(false) |
137 , m_localStorageEnabled(false) | 137 , m_localStorageEnabled(false) |
138 , m_isScriptEnabled(false) | 138 , m_isScriptEnabled(false) |
| 139 , m_isDartEnabled(false) |
139 , m_isWebSecurityEnabled(true) | 140 , m_isWebSecurityEnabled(true) |
140 , m_allowUniversalAccessFromFileURLs(true) | 141 , m_allowUniversalAccessFromFileURLs(true) |
141 , m_allowFileAccessFromFileURLs(true) | 142 , m_allowFileAccessFromFileURLs(true) |
142 , m_javaScriptCanOpenWindowsAutomatically(false) | 143 , m_javaScriptCanOpenWindowsAutomatically(false) |
143 , m_javaScriptCanAccessClipboard(false) | 144 , m_javaScriptCanAccessClipboard(false) |
144 , m_shouldPrintBackgrounds(false) | 145 , m_shouldPrintBackgrounds(false) |
145 , m_textAreasAreResizable(false) | 146 , m_textAreasAreResizable(false) |
146 #if ENABLE(DASHBOARD_SUPPORT) | 147 #if ENABLE(DASHBOARD_SUPPORT) |
147 , m_usesDashboardBackwardCompatibilityMode(false) | 148 , m_usesDashboardBackwardCompatibilityMode(false) |
148 #endif | 149 #endif |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 void Settings::setLoadsSiteIconsIgnoringImageLoadingSetting(bool loadsSiteIcons) | 366 void Settings::setLoadsSiteIconsIgnoringImageLoadingSetting(bool loadsSiteIcons) |
366 { | 367 { |
367 m_loadsSiteIconsIgnoringImageLoadingSetting = loadsSiteIcons; | 368 m_loadsSiteIconsIgnoringImageLoadingSetting = loadsSiteIcons; |
368 } | 369 } |
369 | 370 |
370 void Settings::setScriptEnabled(bool isScriptEnabled) | 371 void Settings::setScriptEnabled(bool isScriptEnabled) |
371 { | 372 { |
372 m_isScriptEnabled = isScriptEnabled; | 373 m_isScriptEnabled = isScriptEnabled; |
373 } | 374 } |
374 | 375 |
| 376 void Settings::setDartEnabled(bool isDartEnabled) |
| 377 { |
| 378 m_isDartEnabled = isDartEnabled; |
| 379 } |
| 380 |
375 void Settings::setWebSecurityEnabled(bool isWebSecurityEnabled) | 381 void Settings::setWebSecurityEnabled(bool isWebSecurityEnabled) |
376 { | 382 { |
377 m_isWebSecurityEnabled = isWebSecurityEnabled; | 383 m_isWebSecurityEnabled = isWebSecurityEnabled; |
378 } | 384 } |
379 | 385 |
380 void Settings::setAllowUniversalAccessFromFileURLs(bool allowUniversalAccessFrom
FileURLs) | 386 void Settings::setAllowUniversalAccessFromFileURLs(bool allowUniversalAccessFrom
FileURLs) |
381 { | 387 { |
382 m_allowUniversalAccessFromFileURLs = allowUniversalAccessFromFileURLs; | 388 m_allowUniversalAccessFromFileURLs = allowUniversalAccessFromFileURLs; |
383 } | 389 } |
384 | 390 |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 { | 837 { |
832 gMockScrollbarsEnabled = flag; | 838 gMockScrollbarsEnabled = flag; |
833 } | 839 } |
834 | 840 |
835 bool Settings::mockScrollbarsEnabled() | 841 bool Settings::mockScrollbarsEnabled() |
836 { | 842 { |
837 return gMockScrollbarsEnabled; | 843 return gMockScrollbarsEnabled; |
838 } | 844 } |
839 | 845 |
840 } // namespace WebCore | 846 } // namespace WebCore |
OLD | NEW |