| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include <memory> | 42 #include <memory> |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 std::unique_ptr<DummyPageHolder> DummyPageHolder::create( | 46 std::unique_ptr<DummyPageHolder> DummyPageHolder::create( |
| 47 const IntSize& initialViewSize, | 47 const IntSize& initialViewSize, |
| 48 Page::PageClients* pageClients, | 48 Page::PageClients* pageClients, |
| 49 FrameLoaderClient* frameLoaderClient, | 49 FrameLoaderClient* frameLoaderClient, |
| 50 FrameSettingOverrideFunction settingOverrider, | 50 FrameSettingOverrideFunction settingOverrider, |
| 51 InterfaceProvider* interfaceProvider) { | 51 InterfaceProvider* interfaceProvider) { |
| 52 return wrapUnique(new DummyPageHolder(initialViewSize, pageClients, | 52 return WTF::wrapUnique( |
| 53 frameLoaderClient, settingOverrider, | 53 new DummyPageHolder(initialViewSize, pageClients, frameLoaderClient, |
| 54 interfaceProvider)); | 54 settingOverrider, interfaceProvider)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 DummyPageHolder::DummyPageHolder(const IntSize& initialViewSize, | 57 DummyPageHolder::DummyPageHolder(const IntSize& initialViewSize, |
| 58 Page::PageClients* pageClientsArgument, | 58 Page::PageClients* pageClientsArgument, |
| 59 FrameLoaderClient* frameLoaderClient, | 59 FrameLoaderClient* frameLoaderClient, |
| 60 FrameSettingOverrideFunction settingOverrider, | 60 FrameSettingOverrideFunction settingOverrider, |
| 61 InterfaceProvider* interfaceProvider) { | 61 InterfaceProvider* interfaceProvider) { |
| 62 Page::PageClients pageClients; | 62 Page::PageClients pageClients; |
| 63 if (!pageClientsArgument) { | 63 if (!pageClientsArgument) { |
| 64 fillWithEmptyClients(pageClients); | 64 fillWithEmptyClients(pageClients); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 FrameView& DummyPageHolder::frameView() const { | 106 FrameView& DummyPageHolder::frameView() const { |
| 107 return *m_frame->view(); | 107 return *m_frame->view(); |
| 108 } | 108 } |
| 109 | 109 |
| 110 Document& DummyPageHolder::document() const { | 110 Document& DummyPageHolder::document() const { |
| 111 return *m_frame->domWindow()->document(); | 111 return *m_frame->domWindow()->document(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 } // namespace blink | 114 } // namespace blink |
| OLD | NEW |