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

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

Issue 14362037: Remove USE(GSTREAMER) and USE(WEBAUDIO_GSTREAMER) guards. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove GSTREAMER specific code Created 7 years, 8 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
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after
1940 1940
1941 String Internals::getImageSourceURL(Element* element, ExceptionCode& ec) 1941 String Internals::getImageSourceURL(Element* element, ExceptionCode& ec)
1942 { 1942 {
1943 if (!element) { 1943 if (!element) {
1944 ec = INVALID_ACCESS_ERR; 1944 ec = INVALID_ACCESS_ERR;
1945 return String(); 1945 return String();
1946 } 1946 }
1947 return element->imageSourceURL(); 1947 return element->imageSourceURL();
1948 } 1948 }
1949 1949
1950 #if ENABLE(VIDEO)
1951 void Internals::simulateAudioInterruption(Node* node)
1952 {
1953 #if USE(GSTREAMER)
1954 HTMLMediaElement* element = toMediaElement(node);
1955 element->player()->simulateAudioInterruption();
1956 #else
1957 UNUSED_PARAM(node);
1958 #endif
1959 }
1960 #endif
1961
1962 bool Internals::isSelectPopupVisible(Node* node) 1950 bool Internals::isSelectPopupVisible(Node* node)
1963 { 1951 {
1964 if (!isHTMLSelectElement(node)) 1952 if (!isHTMLSelectElement(node))
1965 return false; 1953 return false;
1966 1954
1967 HTMLSelectElement* select = toHTMLSelectElement(node); 1955 HTMLSelectElement* select = toHTMLSelectElement(node);
1968 1956
1969 RenderObject* renderer = select->renderer(); 1957 RenderObject* renderer = select->renderer();
1970 if (!renderer->isMenuList()) 1958 if (!renderer->isMenuList())
1971 return false; 1959 return false;
1972 1960
1973 RenderMenuList* menuList = toRenderMenuList(renderer); 1961 RenderMenuList* menuList = toRenderMenuList(renderer);
1974 return menuList->popupIsVisible(); 1962 return menuList->popupIsVisible();
1975 } 1963 }
1976 1964
1977 } 1965 }
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698