Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 16387015: Make unprefixed EME APIs use platform and Chromium. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 #if ENABLE(BATTERY_STATUS) 106 #if ENABLE(BATTERY_STATUS)
107 #include "modules/battery/BatteryController.h" 107 #include "modules/battery/BatteryController.h"
108 #endif 108 #endif
109 109
110 #include "core/page/PagePopupController.h" 110 #include "core/page/PagePopupController.h"
111 #include "core/platform/graphics/GraphicsLayer.h" 111 #include "core/platform/graphics/GraphicsLayer.h"
112 #include "core/platform/graphics/filters/FilterOperation.h" 112 #include "core/platform/graphics/filters/FilterOperation.h"
113 #include "core/platform/graphics/filters/FilterOperations.h" 113 #include "core/platform/graphics/filters/FilterOperations.h"
114 #include "core/rendering/RenderLayerBacking.h" 114 #include "core/rendering/RenderLayerBacking.h"
115 115
116 #if ENABLE(ENCRYPTED_MEDIA_V2)
117 #include "core/testing/MockCDM.h"
118 #include "modules/encryptedmedia/CDM.h"
119 #endif
120
121 #include "core/platform/mock/PlatformSpeechSynthesizerMock.h" 116 #include "core/platform/mock/PlatformSpeechSynthesizerMock.h"
122 #include "modules/speech/DOMWindowSpeechSynthesis.h" 117 #include "modules/speech/DOMWindowSpeechSynthesis.h"
123 #include "modules/speech/SpeechSynthesis.h" 118 #include "modules/speech/SpeechSynthesis.h"
124 119
125 namespace WebCore { 120 namespace WebCore {
126 121
127 static MockPagePopupDriver* s_pagePopupDriver = 0; 122 static MockPagePopupDriver* s_pagePopupDriver = 0;
128 123
129 using namespace HTMLNames; 124 using namespace HTMLNames;
130 125
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 void Internals::setUsesOverlayScrollbars(bool enabled) 1905 void Internals::setUsesOverlayScrollbars(bool enabled)
1911 { 1906 {
1912 WebCore::Settings::setUsesOverlayScrollbars(enabled); 1907 WebCore::Settings::setUsesOverlayScrollbars(enabled);
1913 } 1908 }
1914 1909
1915 void Internals::forceReload(bool endToEnd) 1910 void Internals::forceReload(bool endToEnd)
1916 { 1911 {
1917 frame()->loader()->reload(endToEnd); 1912 frame()->loader()->reload(endToEnd);
1918 } 1913 }
1919 1914
1920 #if ENABLE(ENCRYPTED_MEDIA_V2)
1921 void Internals::initializeMockCDM()
1922 {
1923 CDM::registerCDMFactory(MockCDM::create, MockCDM::supportsKeySytem);
1924 }
1925 #endif
1926
1927 String Internals::markerTextForListItem(Element* element, ExceptionCode& ec) 1915 String Internals::markerTextForListItem(Element* element, ExceptionCode& ec)
1928 { 1916 {
1929 if (!element) { 1917 if (!element) {
1930 ec = INVALID_ACCESS_ERR; 1918 ec = INVALID_ACCESS_ERR;
1931 return String(); 1919 return String();
1932 } 1920 }
1933 return WebCore::markerTextForListItem(element); 1921 return WebCore::markerTextForListItem(element);
1934 } 1922 }
1935 1923
1936 String Internals::getImageSourceURL(Element* element, ExceptionCode& ec) 1924 String Internals::getImageSourceURL(Element* element, ExceptionCode& ec)
(...skipping 14 matching lines...) Expand all
1951 1939
1952 RenderObject* renderer = select->renderer(); 1940 RenderObject* renderer = select->renderer();
1953 if (!renderer->isMenuList()) 1941 if (!renderer->isMenuList())
1954 return false; 1942 return false;
1955 1943
1956 RenderMenuList* menuList = toRenderMenuList(renderer); 1944 RenderMenuList* menuList = toRenderMenuList(renderer);
1957 return menuList->popupIsVisible(); 1945 return menuList->popupIsVisible();
1958 } 1946 }
1959 1947
1960 } 1948 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698