Chromium Code Reviews| 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 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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) | 1950 #if ENABLE(VIDEO) |
| 1951 void Internals::simulateAudioInterruption(Node* node) | 1951 void Internals::simulateAudioInterruption(Node* node) |
|
abarth-chromium
2013/04/19 19:36:40
Should we remove this function (and any tests usin
| |
| 1952 { | 1952 { |
| 1953 #if USE(GSTREAMER) | |
| 1954 HTMLMediaElement* element = toMediaElement(node); | |
| 1955 element->player()->simulateAudioInterruption(); | |
| 1956 #else | |
| 1957 UNUSED_PARAM(node); | 1953 UNUSED_PARAM(node); |
| 1958 #endif | |
| 1959 } | 1954 } |
| 1960 #endif | 1955 #endif |
| 1961 | 1956 |
| 1962 bool Internals::isSelectPopupVisible(Node* node) | 1957 bool Internals::isSelectPopupVisible(Node* node) |
| 1963 { | 1958 { |
| 1964 if (!isHTMLSelectElement(node)) | 1959 if (!isHTMLSelectElement(node)) |
| 1965 return false; | 1960 return false; |
| 1966 | 1961 |
| 1967 HTMLSelectElement* select = toHTMLSelectElement(node); | 1962 HTMLSelectElement* select = toHTMLSelectElement(node); |
| 1968 | 1963 |
| 1969 RenderObject* renderer = select->renderer(); | 1964 RenderObject* renderer = select->renderer(); |
| 1970 if (!renderer->isMenuList()) | 1965 if (!renderer->isMenuList()) |
| 1971 return false; | 1966 return false; |
| 1972 | 1967 |
| 1973 RenderMenuList* menuList = toRenderMenuList(renderer); | 1968 RenderMenuList* menuList = toRenderMenuList(renderer); |
| 1974 return menuList->popupIsVisible(); | 1969 return menuList->popupIsVisible(); |
| 1975 } | 1970 } |
| 1976 | 1971 |
| 1977 } | 1972 } |
| OLD | NEW |