| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 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 are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * 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 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 | 1093 |
| 1094 CompositorProxyClient* ChromeClientImpl::createCompositorProxyClient( | 1094 CompositorProxyClient* ChromeClientImpl::createCompositorProxyClient( |
| 1095 LocalFrame* frame) { | 1095 LocalFrame* frame) { |
| 1096 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); | 1096 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 1097 return webFrame->localRoot()->frameWidget()->createCompositorProxyClient(); | 1097 return webFrame->localRoot()->frameWidget()->createCompositorProxyClient(); |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 void ChromeClientImpl::registerPopupOpeningObserver( | 1100 void ChromeClientImpl::registerPopupOpeningObserver( |
| 1101 PopupOpeningObserver* observer) { | 1101 PopupOpeningObserver* observer) { |
| 1102 DCHECK(observer); | 1102 DCHECK(observer); |
| 1103 m_popupOpeningObservers.append(observer); | 1103 m_popupOpeningObservers.push_back(observer); |
| 1104 } | 1104 } |
| 1105 | 1105 |
| 1106 void ChromeClientImpl::unregisterPopupOpeningObserver( | 1106 void ChromeClientImpl::unregisterPopupOpeningObserver( |
| 1107 PopupOpeningObserver* observer) { | 1107 PopupOpeningObserver* observer) { |
| 1108 size_t index = m_popupOpeningObservers.find(observer); | 1108 size_t index = m_popupOpeningObservers.find(observer); |
| 1109 DCHECK_NE(index, kNotFound); | 1109 DCHECK_NE(index, kNotFound); |
| 1110 m_popupOpeningObservers.remove(index); | 1110 m_popupOpeningObservers.remove(index); |
| 1111 } | 1111 } |
| 1112 | 1112 |
| 1113 void ChromeClientImpl::notifyPopupOpeningObservers() const { | 1113 void ChromeClientImpl::notifyPopupOpeningObservers() const { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 if (RuntimeEnabledFeatures::presentationEnabled()) | 1152 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1153 PresentationController::provideTo(frame, client->presentationClient()); | 1153 PresentationController::provideTo(frame, client->presentationClient()); |
| 1154 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1154 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
| 1155 provideAudioOutputDeviceClientTo(frame, | 1155 provideAudioOutputDeviceClientTo(frame, |
| 1156 AudioOutputDeviceClientImpl::create()); | 1156 AudioOutputDeviceClientImpl::create()); |
| 1157 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1157 if (RuntimeEnabledFeatures::installedAppEnabled()) |
| 1158 InstalledAppController::provideTo(frame, client->installedAppClient()); | 1158 InstalledAppController::provideTo(frame, client->installedAppClient()); |
| 1159 } | 1159 } |
| 1160 | 1160 |
| 1161 } // namespace blink | 1161 } // namespace blink |
| OLD | NEW |