| 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 WebConsoleMessage(WebConsoleMessage::kLevelError, message)); | 943 WebConsoleMessage(WebConsoleMessage::kLevelError, message)); |
| 944 | 944 |
| 945 return false; | 945 return false; |
| 946 } | 946 } |
| 947 | 947 |
| 948 WebLayerTreeView* ChromeClientImpl::GetWebLayerTreeView(LocalFrame* frame) { | 948 WebLayerTreeView* ChromeClientImpl::GetWebLayerTreeView(LocalFrame* frame) { |
| 949 WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame); | 949 WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame); |
| 950 return web_frame->LocalRoot()->FrameWidget()->GetLayerTreeView(); | 950 return web_frame->LocalRoot()->FrameWidget()->GetLayerTreeView(); |
| 951 } | 951 } |
| 952 | 952 |
| 953 WebLocalFrameBase* ChromeClientImpl::GetWebLocalFrameBase(LocalFrame* frame) { |
| 954 return WebLocalFrameImpl::FromFrame(frame); |
| 955 } |
| 956 |
| 953 void ChromeClientImpl::SetEventListenerProperties( | 957 void ChromeClientImpl::SetEventListenerProperties( |
| 954 LocalFrame* frame, | 958 LocalFrame* frame, |
| 955 WebEventListenerClass event_class, | 959 WebEventListenerClass event_class, |
| 956 WebEventListenerProperties properties) { | 960 WebEventListenerProperties properties) { |
| 957 // |frame| might be null if called via TreeScopeAdopter:: | 961 // |frame| might be null if called via TreeScopeAdopter:: |
| 958 // moveNodeToNewDocument() and the new document has no frame attached. | 962 // moveNodeToNewDocument() and the new document has no frame attached. |
| 959 // Since a document without a frame cannot attach one later, it is safe to | 963 // Since a document without a frame cannot attach one later, it is safe to |
| 960 // exit early. | 964 // exit early. |
| 961 if (!frame) | 965 if (!frame) |
| 962 return; | 966 return; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 if (RuntimeEnabledFeatures::presentationEnabled()) | 1245 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1242 PresentationController::ProvideTo(frame, client->PresentationClient()); | 1246 PresentationController::ProvideTo(frame, client->PresentationClient()); |
| 1243 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1247 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
| 1244 ProvideAudioOutputDeviceClientTo(frame, | 1248 ProvideAudioOutputDeviceClientTo(frame, |
| 1245 new AudioOutputDeviceClientImpl(frame)); | 1249 new AudioOutputDeviceClientImpl(frame)); |
| 1246 } | 1250 } |
| 1247 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); | 1251 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); |
| 1248 } | 1252 } |
| 1249 | 1253 |
| 1250 } // namespace blink | 1254 } // namespace blink |
| OLD | NEW |