| 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 | 814 |
| 815 WebLocalFrameBase* ChromeClientImpl::GetWebLocalFrameBase(LocalFrame* frame) { | 815 WebLocalFrameBase* ChromeClientImpl::GetWebLocalFrameBase(LocalFrame* frame) { |
| 816 return WebLocalFrameImpl::FromFrame(frame); | 816 return WebLocalFrameImpl::FromFrame(frame); |
| 817 } | 817 } |
| 818 | 818 |
| 819 WebRemoteFrameBase* ChromeClientImpl::GetWebRemoteFrameBase( | 819 WebRemoteFrameBase* ChromeClientImpl::GetWebRemoteFrameBase( |
| 820 RemoteFrame& frame) { | 820 RemoteFrame& frame) { |
| 821 return WebRemoteFrameImpl::FromFrame(frame); | 821 return WebRemoteFrameImpl::FromFrame(frame); |
| 822 } | 822 } |
| 823 | 823 |
| 824 std::unique_ptr<WebMediaIPH> ChromeClientImpl::CreateWebMediaIPH( |
| 825 LocalFrame* frame) { |
| 826 return WebLocalFrameImpl::FromFrame(frame)->Client()->CreateMediaIPH(); |
| 827 } |
| 828 |
| 824 void ChromeClientImpl::RequestDecode( | 829 void ChromeClientImpl::RequestDecode( |
| 825 LocalFrame* frame, | 830 LocalFrame* frame, |
| 826 const PaintImage& image, | 831 const PaintImage& image, |
| 827 std::unique_ptr<WTF::Function<void(bool)>> callback) { | 832 std::unique_ptr<WTF::Function<void(bool)>> callback) { |
| 828 WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame); | 833 WebLocalFrameImpl* web_frame = WebLocalFrameImpl::FromFrame(frame); |
| 829 web_frame->LocalRoot()->FrameWidget()->RequestDecode(image, | 834 web_frame->LocalRoot()->FrameWidget()->RequestDecode(image, |
| 830 std::move(callback)); | 835 std::move(callback)); |
| 831 } | 836 } |
| 832 | 837 |
| 833 void ChromeClientImpl::SetEventListenerProperties( | 838 void ChromeClientImpl::SetEventListenerProperties( |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 std::unique_ptr<WebFrameScheduler> ChromeClientImpl::CreateFrameScheduler( | 1116 std::unique_ptr<WebFrameScheduler> ChromeClientImpl::CreateFrameScheduler( |
| 1112 BlameContext* blame_context) { | 1117 BlameContext* blame_context) { |
| 1113 return web_view_->Scheduler()->CreateFrameScheduler(blame_context); | 1118 return web_view_->Scheduler()->CreateFrameScheduler(blame_context); |
| 1114 } | 1119 } |
| 1115 | 1120 |
| 1116 double ChromeClientImpl::LastFrameTimeMonotonic() const { | 1121 double ChromeClientImpl::LastFrameTimeMonotonic() const { |
| 1117 return web_view_->LastFrameTimeMonotonic(); | 1122 return web_view_->LastFrameTimeMonotonic(); |
| 1118 } | 1123 } |
| 1119 | 1124 |
| 1120 } // namespace blink | 1125 } // namespace blink |
| OLD | NEW |