| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 #include "weborigin/SchemeRegistry.h" | 103 #include "weborigin/SchemeRegistry.h" |
| 104 #include "wtf/dtoa.h" | 104 #include "wtf/dtoa.h" |
| 105 #include "wtf/text/StringBuffer.h" | 105 #include "wtf/text/StringBuffer.h" |
| 106 | 106 |
| 107 #include "core/page/PagePopupController.h" | 107 #include "core/page/PagePopupController.h" |
| 108 #include "core/platform/graphics/GraphicsLayer.h" | 108 #include "core/platform/graphics/GraphicsLayer.h" |
| 109 #include "core/platform/graphics/filters/FilterOperation.h" | 109 #include "core/platform/graphics/filters/FilterOperation.h" |
| 110 #include "core/platform/graphics/filters/FilterOperations.h" | 110 #include "core/platform/graphics/filters/FilterOperations.h" |
| 111 #include "core/rendering/RenderLayerBacking.h" | 111 #include "core/rendering/RenderLayerBacking.h" |
| 112 | 112 |
| 113 #if ENABLE(ENCRYPTED_MEDIA_V2) | |
| 114 #include "core/testing/MockCDM.h" | |
| 115 #include "modules/encryptedmedia/CDM.h" | |
| 116 #endif | |
| 117 | |
| 118 #include "core/platform/mock/PlatformSpeechSynthesizerMock.h" | 113 #include "core/platform/mock/PlatformSpeechSynthesizerMock.h" |
| 119 #include "modules/speech/DOMWindowSpeechSynthesis.h" | 114 #include "modules/speech/DOMWindowSpeechSynthesis.h" |
| 120 #include "modules/speech/SpeechSynthesis.h" | 115 #include "modules/speech/SpeechSynthesis.h" |
| 121 | 116 |
| 122 namespace WebCore { | 117 namespace WebCore { |
| 123 | 118 |
| 124 static MockPagePopupDriver* s_pagePopupDriver = 0; | 119 static MockPagePopupDriver* s_pagePopupDriver = 0; |
| 125 | 120 |
| 126 using namespace HTMLNames; | 121 using namespace HTMLNames; |
| 127 | 122 |
| (...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1872 void Internals::setUsesOverlayScrollbars(bool enabled) | 1867 void Internals::setUsesOverlayScrollbars(bool enabled) |
| 1873 { | 1868 { |
| 1874 WebCore::Settings::setUsesOverlayScrollbars(enabled); | 1869 WebCore::Settings::setUsesOverlayScrollbars(enabled); |
| 1875 } | 1870 } |
| 1876 | 1871 |
| 1877 void Internals::forceReload(bool endToEnd) | 1872 void Internals::forceReload(bool endToEnd) |
| 1878 { | 1873 { |
| 1879 frame()->loader()->reload(endToEnd); | 1874 frame()->loader()->reload(endToEnd); |
| 1880 } | 1875 } |
| 1881 | 1876 |
| 1882 #if ENABLE(ENCRYPTED_MEDIA_V2) | |
| 1883 void Internals::initializeMockCDM() | |
| 1884 { | |
| 1885 CDM::registerCDMFactory(MockCDM::create, MockCDM::supportsKeySytem); | |
| 1886 } | |
| 1887 #endif | |
| 1888 | |
| 1889 String Internals::markerTextForListItem(Element* element, ExceptionCode& ec) | 1877 String Internals::markerTextForListItem(Element* element, ExceptionCode& ec) |
| 1890 { | 1878 { |
| 1891 if (!element) { | 1879 if (!element) { |
| 1892 ec = INVALID_ACCESS_ERR; | 1880 ec = INVALID_ACCESS_ERR; |
| 1893 return String(); | 1881 return String(); |
| 1894 } | 1882 } |
| 1895 return WebCore::markerTextForListItem(element); | 1883 return WebCore::markerTextForListItem(element); |
| 1896 } | 1884 } |
| 1897 | 1885 |
| 1898 String Internals::getImageSourceURL(Element* element, ExceptionCode& ec) | 1886 String Internals::getImageSourceURL(Element* element, ExceptionCode& ec) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1913 | 1901 |
| 1914 RenderObject* renderer = select->renderer(); | 1902 RenderObject* renderer = select->renderer(); |
| 1915 if (!renderer->isMenuList()) | 1903 if (!renderer->isMenuList()) |
| 1916 return false; | 1904 return false; |
| 1917 | 1905 |
| 1918 RenderMenuList* menuList = toRenderMenuList(renderer); | 1906 RenderMenuList* menuList = toRenderMenuList(renderer); |
| 1919 return menuList->popupIsVisible(); | 1907 return menuList->popupIsVisible(); |
| 1920 } | 1908 } |
| 1921 | 1909 |
| 1922 } | 1910 } |
| OLD | NEW |