| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserv
ed. |
| 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // All other permutations still heed loadsImagesAutomatically setting. | 112 // All other permutations still heed loadsImagesAutomatically setting. |
| 113 void setLoadsSiteIconsIgnoringImageLoadingSetting(bool); | 113 void setLoadsSiteIconsIgnoringImageLoadingSetting(bool); |
| 114 bool loadsSiteIconsIgnoringImageLoadingSetting() const { return m_loadsS
iteIconsIgnoringImageLoadingSetting; } | 114 bool loadsSiteIconsIgnoringImageLoadingSetting() const { return m_loadsS
iteIconsIgnoringImageLoadingSetting; } |
| 115 | 115 |
| 116 void setScriptEnabled(bool); | 116 void setScriptEnabled(bool); |
| 117 // Instead of calling isScriptEnabled directly, please consider calling | 117 // Instead of calling isScriptEnabled directly, please consider calling |
| 118 // ScriptController::canExecuteScripts, which takes things like the | 118 // ScriptController::canExecuteScripts, which takes things like the |
| 119 // HTML sandbox attribute into account. | 119 // HTML sandbox attribute into account. |
| 120 bool isScriptEnabled() const { return m_isScriptEnabled; } | 120 bool isScriptEnabled() const { return m_isScriptEnabled; } |
| 121 | 121 |
| 122 void setDartEnabled(bool); |
| 123 bool isDartEnabled() const { return m_isDartEnabled; } |
| 124 |
| 122 void setWebSecurityEnabled(bool); | 125 void setWebSecurityEnabled(bool); |
| 123 bool isWebSecurityEnabled() const { return m_isWebSecurityEnabled; } | 126 bool isWebSecurityEnabled() const { return m_isWebSecurityEnabled; } |
| 124 | 127 |
| 125 void setAllowUniversalAccessFromFileURLs(bool); | 128 void setAllowUniversalAccessFromFileURLs(bool); |
| 126 bool allowUniversalAccessFromFileURLs() const { return m_allowUniversalA
ccessFromFileURLs; } | 129 bool allowUniversalAccessFromFileURLs() const { return m_allowUniversalA
ccessFromFileURLs; } |
| 127 | 130 |
| 128 void setAllowFileAccessFromFileURLs(bool); | 131 void setAllowFileAccessFromFileURLs(bool); |
| 129 bool allowFileAccessFromFileURLs() const { return m_allowFileAccessFromF
ileURLs; } | 132 bool allowFileAccessFromFileURLs() const { return m_allowFileAccessFromF
ileURLs; } |
| 130 | 133 |
| 131 void setJavaScriptCanOpenWindowsAutomatically(bool); | 134 void setJavaScriptCanOpenWindowsAutomatically(bool); |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 bool m_isJavaEnabled : 1; | 523 bool m_isJavaEnabled : 1; |
| 521 bool m_loadsImagesAutomatically : 1; | 524 bool m_loadsImagesAutomatically : 1; |
| 522 bool m_loadsSiteIconsIgnoringImageLoadingSetting : 1; | 525 bool m_loadsSiteIconsIgnoringImageLoadingSetting : 1; |
| 523 bool m_privateBrowsingEnabled : 1; | 526 bool m_privateBrowsingEnabled : 1; |
| 524 bool m_caretBrowsingEnabled : 1; | 527 bool m_caretBrowsingEnabled : 1; |
| 525 bool m_areImagesEnabled : 1; | 528 bool m_areImagesEnabled : 1; |
| 526 bool m_isMediaEnabled : 1; | 529 bool m_isMediaEnabled : 1; |
| 527 bool m_arePluginsEnabled : 1; | 530 bool m_arePluginsEnabled : 1; |
| 528 bool m_localStorageEnabled : 1; | 531 bool m_localStorageEnabled : 1; |
| 529 bool m_isScriptEnabled : 1; | 532 bool m_isScriptEnabled : 1; |
| 533 bool m_isDartEnabled : 1; |
| 530 bool m_isWebSecurityEnabled : 1; | 534 bool m_isWebSecurityEnabled : 1; |
| 531 bool m_allowUniversalAccessFromFileURLs: 1; | 535 bool m_allowUniversalAccessFromFileURLs: 1; |
| 532 bool m_allowFileAccessFromFileURLs: 1; | 536 bool m_allowFileAccessFromFileURLs: 1; |
| 533 bool m_javaScriptCanOpenWindowsAutomatically : 1; | 537 bool m_javaScriptCanOpenWindowsAutomatically : 1; |
| 534 bool m_javaScriptCanAccessClipboard : 1; | 538 bool m_javaScriptCanAccessClipboard : 1; |
| 535 bool m_shouldPrintBackgrounds : 1; | 539 bool m_shouldPrintBackgrounds : 1; |
| 536 bool m_textAreasAreResizable : 1; | 540 bool m_textAreasAreResizable : 1; |
| 537 #if ENABLE(DASHBOARD_SUPPORT) | 541 #if ENABLE(DASHBOARD_SUPPORT) |
| 538 bool m_usesDashboardBackwardCompatibilityMode : 1; | 542 bool m_usesDashboardBackwardCompatibilityMode : 1; |
| 539 #endif | 543 #endif |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 static bool gShouldPaintNativeControls; | 628 static bool gShouldPaintNativeControls; |
| 625 #endif | 629 #endif |
| 626 #if PLATFORM(WIN) || (OS(WINDOWS) && PLATFORM(WX)) | 630 #if PLATFORM(WIN) || (OS(WINDOWS) && PLATFORM(WX)) |
| 627 static bool gShouldUseHighResolutionTimers; | 631 static bool gShouldUseHighResolutionTimers; |
| 628 #endif | 632 #endif |
| 629 }; | 633 }; |
| 630 | 634 |
| 631 } // namespace WebCore | 635 } // namespace WebCore |
| 632 | 636 |
| 633 #endif // Settings_h | 637 #endif // Settings_h |
| OLD | NEW |