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