| 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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "web/WebSettingsImpl.h" | 32 #include "web/WebSettingsImpl.h" |
| 33 | 33 |
| 34 #include "core/frame/Settings.h" | 34 #include "core/frame/Settings.h" |
| 35 #include "core/inspector/InspectorController.h" | 35 #include "core/inspector/InspectorController.h" |
| 36 #include "platform/graphics/DeferredImageDecoder.h" | 36 #include "platform/graphics/DeferredImageDecoder.h" |
| 37 | 37 |
| 38 #include "public/platform/WebString.h" | 38 #include "public/platform/WebString.h" |
| 39 #include "public/platform/WebURL.h" | 39 #include "public/platform/WebURL.h" |
| 40 | 40 |
| 41 using namespace WebCore; | 41 using namespace blink; |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 WebSettingsImpl::WebSettingsImpl(Settings* settings, InspectorController* inspec
torController) | 45 WebSettingsImpl::WebSettingsImpl(Settings* settings, InspectorController* inspec
torController) |
| 46 : m_settings(settings) | 46 : m_settings(settings) |
| 47 , m_inspectorController(inspectorController) | 47 , m_inspectorController(inspectorController) |
| 48 , m_showFPSCounter(false) | 48 , m_showFPSCounter(false) |
| 49 , m_showPaintRects(false) | 49 , m_showPaintRects(false) |
| 50 , m_renderVSyncNotificationEnabled(false) | 50 , m_renderVSyncNotificationEnabled(false) |
| 51 , m_autoZoomFocusedNodeToLegibleScale(false) | 51 , m_autoZoomFocusedNodeToLegibleScale(false) |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 m_showFPSCounter = show; | 415 m_showFPSCounter = show; |
| 416 } | 416 } |
| 417 | 417 |
| 418 void WebSettingsImpl::setShowPaintRects(bool show) | 418 void WebSettingsImpl::setShowPaintRects(bool show) |
| 419 { | 419 { |
| 420 m_showPaintRects = show; | 420 m_showPaintRects = show; |
| 421 } | 421 } |
| 422 | 422 |
| 423 void WebSettingsImpl::setEditingBehavior(EditingBehavior behavior) | 423 void WebSettingsImpl::setEditingBehavior(EditingBehavior behavior) |
| 424 { | 424 { |
| 425 m_settings->setEditingBehaviorType(static_cast<WebCore::EditingBehaviorType>
(behavior)); | 425 m_settings->setEditingBehaviorType(static_cast<blink::EditingBehaviorType>(b
ehavior)); |
| 426 } | 426 } |
| 427 | 427 |
| 428 void WebSettingsImpl::setAcceleratedCompositingEnabled(bool enabled) | 428 void WebSettingsImpl::setAcceleratedCompositingEnabled(bool enabled) |
| 429 { | 429 { |
| 430 m_settings->setAcceleratedCompositingEnabled(enabled); | 430 m_settings->setAcceleratedCompositingEnabled(enabled); |
| 431 } | 431 } |
| 432 | 432 |
| 433 void WebSettingsImpl::setMockScrollbarsEnabled(bool enabled) | 433 void WebSettingsImpl::setMockScrollbarsEnabled(bool enabled) |
| 434 { | 434 { |
| 435 m_settings->setMockScrollbarsEnabled(enabled); | 435 m_settings->setMockScrollbarsEnabled(enabled); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 { | 705 { |
| 706 m_mainFrameResizesAreOrientationChanges = enabled; | 706 m_mainFrameResizesAreOrientationChanges = enabled; |
| 707 } | 707 } |
| 708 | 708 |
| 709 void WebSettingsImpl::setDisallowFullscreenForNonMediaElements(bool enabled) | 709 void WebSettingsImpl::setDisallowFullscreenForNonMediaElements(bool enabled) |
| 710 { | 710 { |
| 711 m_disallowFullscreenForNonMediaElements = enabled; | 711 m_disallowFullscreenForNonMediaElements = enabled; |
| 712 } | 712 } |
| 713 | 713 |
| 714 } // namespace blink | 714 } // namespace blink |
| OLD | NEW |