OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/frame/WebLocalFrameBase.h" |
| 6 |
| 7 #include "core/page/ChromeClient.h" |
| 8 #include "core/page/Page.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 WebLocalFrameBase* WebLocalFrameBase::FromFrame(LocalFrame* frame) { |
| 13 if (frame && frame->GetPage()) { |
| 14 return frame->GetPage()->GetChromeClient().GetWebLocalFrameBase(frame); |
| 15 } |
| 16 return nullptr; |
| 17 } |
| 18 |
| 19 WebLocalFrameBase* WebLocalFrameBase::FromFrame(LocalFrame& frame) { |
| 20 return WebLocalFrameBase::FromFrame(&frame); |
| 21 } |
| 22 |
| 23 } // namespace blink |
OLD | NEW |