| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "sky/engine/core/frame/Settings.h" | 34 #include "sky/engine/core/frame/Settings.h" |
| 35 #include "sky/engine/platform/graphics/DeferredImageDecoder.h" | 35 #include "sky/engine/platform/graphics/DeferredImageDecoder.h" |
| 36 | 36 |
| 37 #include "sky/engine/public/platform/WebString.h" | 37 #include "sky/engine/public/platform/WebString.h" |
| 38 #include "sky/engine/public/platform/WebURL.h" | 38 #include "sky/engine/public/platform/WebURL.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 WebSettingsImpl::WebSettingsImpl(Settings* settings) | 42 WebSettingsImpl::WebSettingsImpl(Settings* settings) |
| 43 : m_settings(settings) | 43 : m_settings(settings) |
| 44 , m_showFPSCounter(false) | |
| 45 , m_showPaintRects(false) | 44 , m_showPaintRects(false) |
| 46 , m_renderVSyncNotificationEnabled(false) | 45 , m_renderVSyncNotificationEnabled(false) |
| 47 , m_deferredImageDecodingEnabled(false) | 46 , m_deferredImageDecodingEnabled(false) |
| 48 , m_supportDeprecatedTargetDensityDPI(false) | 47 , m_supportDeprecatedTargetDensityDPI(false) |
| 49 , m_shrinksViewportContentToFit(false) | 48 , m_shrinksViewportContentToFit(false) |
| 50 , m_mainFrameResizesAreOrientationChanges(false) | 49 , m_mainFrameResizesAreOrientationChanges(false) |
| 51 { | 50 { |
| 52 ASSERT(settings); | 51 ASSERT(settings); |
| 53 } | 52 } |
| 54 | 53 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 void WebSettingsImpl::setRenderVSyncNotificationEnabled(bool enabled) | 231 void WebSettingsImpl::setRenderVSyncNotificationEnabled(bool enabled) |
| 233 { | 232 { |
| 234 m_renderVSyncNotificationEnabled = enabled; | 233 m_renderVSyncNotificationEnabled = enabled; |
| 235 } | 234 } |
| 236 | 235 |
| 237 void WebSettingsImpl::setWebGLErrorsToConsoleEnabled(bool enabled) | 236 void WebSettingsImpl::setWebGLErrorsToConsoleEnabled(bool enabled) |
| 238 { | 237 { |
| 239 m_settings->setWebGLErrorsToConsoleEnabled(enabled); | 238 m_settings->setWebGLErrorsToConsoleEnabled(enabled); |
| 240 } | 239 } |
| 241 | 240 |
| 242 void WebSettingsImpl::setShowFPSCounter(bool show) | |
| 243 { | |
| 244 m_showFPSCounter = show; | |
| 245 } | |
| 246 | |
| 247 void WebSettingsImpl::setShowPaintRects(bool show) | 241 void WebSettingsImpl::setShowPaintRects(bool show) |
| 248 { | 242 { |
| 249 m_showPaintRects = show; | 243 m_showPaintRects = show; |
| 250 } | 244 } |
| 251 | 245 |
| 252 void WebSettingsImpl::setMockGestureTapHighlightsEnabled(bool enabled) | 246 void WebSettingsImpl::setMockGestureTapHighlightsEnabled(bool enabled) |
| 253 { | 247 { |
| 254 m_settings->setMockGestureTapHighlightsEnabled(enabled); | 248 m_settings->setMockGestureTapHighlightsEnabled(enabled); |
| 255 } | 249 } |
| 256 | 250 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 { | 371 { |
| 378 m_mainFrameResizesAreOrientationChanges = enabled; | 372 m_mainFrameResizesAreOrientationChanges = enabled; |
| 379 } | 373 } |
| 380 | 374 |
| 381 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options) | 375 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options) |
| 382 { | 376 { |
| 383 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); | 377 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); |
| 384 } | 378 } |
| 385 | 379 |
| 386 } // namespace blink | 380 } // namespace blink |
| OLD | NEW |