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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2868743002: Provide a way to obtain WebLocalFrameBase from a LocalFrame. (Closed)
Patch Set: Create WebLocalFrameBase::FromFrame Created 3 years, 7 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698