| 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 29 matching lines...) Expand all Loading... |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 void RootLayerScrollsFrameSettingOverride(Settings& settings) | 42 void RootLayerScrollsFrameSettingOverride(Settings& settings) |
| 43 { | 43 { |
| 44 settings.setRootLayerScrolls(true); | 44 settings.setRootLayerScrolls(true); |
| 45 } | 45 } |
| 46 | 46 |
| 47 PassOwnPtr<DummyPageHolder> DummyPageHolder::create( | 47 PassOwnPtr<DummyPageHolder> DummyPageHolder::create( |
| 48 const IntSize& initialViewSize, | 48 const IntSize& initialViewSize, |
| 49 Page::PageClients* pageClients, | 49 Page::PageClients* pageClients, |
| 50 PassOwnPtrWillBeRawPtr<FrameLoaderClient> frameLoaderClient, | 50 RawPtr<FrameLoaderClient> frameLoaderClient, |
| 51 FrameSettingOverrideFunction settingOverrider) { | 51 FrameSettingOverrideFunction settingOverrider) { |
| 52 return adoptPtr(new DummyPageHolder(initialViewSize, pageClients, frameLoade
rClient, settingOverrider)); | 52 return adoptPtr(new DummyPageHolder(initialViewSize, pageClients, frameLoade
rClient, settingOverrider)); |
| 53 } | 53 } |
| 54 | 54 |
| 55 DummyPageHolder::DummyPageHolder( | 55 DummyPageHolder::DummyPageHolder( |
| 56 const IntSize& initialViewSize, | 56 const IntSize& initialViewSize, |
| 57 Page::PageClients* pageClientsArgument, | 57 Page::PageClients* pageClientsArgument, |
| 58 PassOwnPtrWillBeRawPtr<FrameLoaderClient> frameLoaderClient, | 58 RawPtr<FrameLoaderClient> frameLoaderClient, |
| 59 FrameSettingOverrideFunction settingOverrider) | 59 FrameSettingOverrideFunction settingOverrider) |
| 60 { | 60 { |
| 61 Page::PageClients pageClients; | 61 Page::PageClients pageClients; |
| 62 if (!pageClientsArgument) { | 62 if (!pageClientsArgument) { |
| 63 fillWithEmptyClients(pageClients); | 63 fillWithEmptyClients(pageClients); |
| 64 } else { | 64 } else { |
| 65 pageClients.chromeClient = pageClientsArgument->chromeClient; | 65 pageClients.chromeClient = pageClientsArgument->chromeClient; |
| 66 pageClients.contextMenuClient = pageClientsArgument->contextMenuClient; | 66 pageClients.contextMenuClient = pageClientsArgument->contextMenuClient; |
| 67 pageClients.editorClient = pageClientsArgument->editorClient; | 67 pageClients.editorClient = pageClientsArgument->editorClient; |
| 68 pageClients.dragClient = pageClientsArgument->dragClient; | 68 pageClients.dragClient = pageClientsArgument->dragClient; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 { | 107 { |
| 108 return *m_frame->view(); | 108 return *m_frame->view(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 Document& DummyPageHolder::document() const | 111 Document& DummyPageHolder::document() const |
| 112 { | 112 { |
| 113 return *m_frame->domWindow()->document(); | 113 return *m_frame->domWindow()->document(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| OLD | NEW |