| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 , m_maximumDecodedImageSize(numeric_limits<size_t>::max()) | 65 , m_maximumDecodedImageSize(numeric_limits<size_t>::max()) |
| 66 , m_localStorageQuota(5 * 1024 * 1024) // Suggested by the HTML5 spec. | 66 , m_localStorageQuota(5 * 1024 * 1024) // Suggested by the HTML5 spec. |
| 67 , m_pluginAllowedRunTime(numeric_limits<unsigned>::max()) | 67 , m_pluginAllowedRunTime(numeric_limits<unsigned>::max()) |
| 68 , m_zoomMode(ZoomPage) | 68 , m_zoomMode(ZoomPage) |
| 69 , m_isSpatialNavigationEnabled(false) | 69 , m_isSpatialNavigationEnabled(false) |
| 70 , m_isJavaEnabled(false) | 70 , m_isJavaEnabled(false) |
| 71 , m_loadsImagesAutomatically(false) | 71 , m_loadsImagesAutomatically(false) |
| 72 , m_privateBrowsingEnabled(false) | 72 , m_privateBrowsingEnabled(false) |
| 73 , m_caretBrowsingEnabled(false) | 73 , m_caretBrowsingEnabled(false) |
| 74 , m_areImagesEnabled(true) | 74 , m_areImagesEnabled(true) |
| 75 , m_isMediaEnabled(true) |
| 75 , m_arePluginsEnabled(false) | 76 , m_arePluginsEnabled(false) |
| 76 , m_localStorageEnabled(false) | 77 , m_localStorageEnabled(false) |
| 77 , m_isJavaScriptEnabled(false) | 78 , m_isJavaScriptEnabled(false) |
| 78 , m_isWebSecurityEnabled(true) | 79 , m_isWebSecurityEnabled(true) |
| 79 , m_allowUniversalAccessFromFileURLs(true) | 80 , m_allowUniversalAccessFromFileURLs(true) |
| 80 , m_allowFileAccessFromFileURLs(true) | 81 , m_allowFileAccessFromFileURLs(true) |
| 81 , m_javaScriptCanOpenWindowsAutomatically(false) | 82 , m_javaScriptCanOpenWindowsAutomatically(false) |
| 82 , m_shouldPrintBackgrounds(false) | 83 , m_shouldPrintBackgrounds(false) |
| 83 , m_textAreasAreResizable(false) | 84 , m_textAreasAreResizable(false) |
| 84 #if ENABLE(DASHBOARD_SUPPORT) | 85 #if ENABLE(DASHBOARD_SUPPORT) |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 void Settings::setJavaEnabled(bool isJavaEnabled) | 256 void Settings::setJavaEnabled(bool isJavaEnabled) |
| 256 { | 257 { |
| 257 m_isJavaEnabled = isJavaEnabled; | 258 m_isJavaEnabled = isJavaEnabled; |
| 258 } | 259 } |
| 259 | 260 |
| 260 void Settings::setImagesEnabled(bool areImagesEnabled) | 261 void Settings::setImagesEnabled(bool areImagesEnabled) |
| 261 { | 262 { |
| 262 m_areImagesEnabled = areImagesEnabled; | 263 m_areImagesEnabled = areImagesEnabled; |
| 263 } | 264 } |
| 264 | 265 |
| 266 void Settings::setMediaEnabled(bool isMediaEnabled) |
| 267 { |
| 268 m_isMediaEnabled = isMediaEnabled; |
| 269 } |
| 270 |
| 265 void Settings::setPluginsEnabled(bool arePluginsEnabled) | 271 void Settings::setPluginsEnabled(bool arePluginsEnabled) |
| 266 { | 272 { |
| 267 m_arePluginsEnabled = arePluginsEnabled; | 273 m_arePluginsEnabled = arePluginsEnabled; |
| 268 } | 274 } |
| 269 | 275 |
| 270 void Settings::setLocalStorageEnabled(bool localStorageEnabled) | 276 void Settings::setLocalStorageEnabled(bool localStorageEnabled) |
| 271 { | 277 { |
| 272 m_localStorageEnabled = localStorageEnabled; | 278 m_localStorageEnabled = localStorageEnabled; |
| 273 } | 279 } |
| 274 | 280 |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 void Settings::setTiledBackingStoreEnabled(bool enabled) | 583 void Settings::setTiledBackingStoreEnabled(bool enabled) |
| 578 { | 584 { |
| 579 m_tiledBackingStoreEnabled = enabled; | 585 m_tiledBackingStoreEnabled = enabled; |
| 580 #if ENABLE(TILED_BACKING_STORE) | 586 #if ENABLE(TILED_BACKING_STORE) |
| 581 if (m_page->mainFrame()) | 587 if (m_page->mainFrame()) |
| 582 m_page->mainFrame()->setTiledBackingStoreEnabled(enabled); | 588 m_page->mainFrame()->setTiledBackingStoreEnabled(enabled); |
| 583 #endif | 589 #endif |
| 584 } | 590 } |
| 585 | 591 |
| 586 } // namespace WebCore | 592 } // namespace WebCore |
| OLD | NEW |