| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "core/frame/FrameHost.h" | 31 #include "core/frame/FrameHost.h" |
| 32 | 32 |
| 33 #include "core/frame/FrameView.h" | |
| 34 #include "core/page/Page.h" | 33 #include "core/page/Page.h" |
| 35 #include "public/platform/Platform.h" | |
| 36 #include "public/platform/WebScheduler.h" | |
| 37 | 34 |
| 38 namespace blink { | 35 namespace blink { |
| 39 | 36 |
| 40 FrameHost* FrameHost::create(Page& page) { | 37 FrameHost* FrameHost::create(Page& page) { |
| 41 return new FrameHost(page); | 38 return new FrameHost(page); |
| 42 } | 39 } |
| 43 | 40 |
| 44 FrameHost::FrameHost(Page& page) : m_page(&page) {} | 41 FrameHost::FrameHost(Page& page) : m_page(&page) {} |
| 45 | 42 |
| 46 // Explicitly in the .cpp to avoid default constructor in .h | 43 // Explicitly in the .cpp to avoid default constructor in .h |
| 47 FrameHost::~FrameHost() {} | 44 FrameHost::~FrameHost() {} |
| 48 | 45 |
| 49 Page& FrameHost::page() { | |
| 50 return *m_page; | |
| 51 } | |
| 52 | |
| 53 const Page& FrameHost::page() const { | |
| 54 return *m_page; | |
| 55 } | |
| 56 | |
| 57 BrowserControls& FrameHost::browserControls() { | |
| 58 return m_page->browserControls(); | |
| 59 } | |
| 60 | |
| 61 const BrowserControls& FrameHost::browserControls() const { | |
| 62 return m_page->browserControls(); | |
| 63 } | |
| 64 | |
| 65 DEFINE_TRACE(FrameHost) { | 46 DEFINE_TRACE(FrameHost) { |
| 66 visitor->trace(m_page); | 47 visitor->trace(m_page); |
| 67 } | 48 } |
| 68 | 49 |
| 69 } // namespace blink | 50 } // namespace blink |
| OLD | NEW |