| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 m_page->settings().setDeviceSupportsTouch( | 296 m_page->settings().setDeviceSupportsTouch( |
| 297 mainSettings.getDeviceSupportsTouch()); | 297 mainSettings.getDeviceSupportsTouch()); |
| 298 m_page->settings().setMinimumFontSize(mainSettings.getMinimumFontSize()); | 298 m_page->settings().setMinimumFontSize(mainSettings.getMinimumFontSize()); |
| 299 m_page->settings().setMinimumLogicalFontSize( | 299 m_page->settings().setMinimumLogicalFontSize( |
| 300 mainSettings.getMinimumLogicalFontSize()); | 300 mainSettings.getMinimumLogicalFontSize()); |
| 301 // FIXME: Should we support enabling a11y while a popup is shown? | 301 // FIXME: Should we support enabling a11y while a popup is shown? |
| 302 m_page->settings().setAccessibilityEnabled( | 302 m_page->settings().setAccessibilityEnabled( |
| 303 mainSettings.getAccessibilityEnabled()); | 303 mainSettings.getAccessibilityEnabled()); |
| 304 m_page->settings().setScrollAnimatorEnabled( | 304 m_page->settings().setScrollAnimatorEnabled( |
| 305 mainSettings.getScrollAnimatorEnabled()); | 305 mainSettings.getScrollAnimatorEnabled()); |
| 306 m_page->settings().setAvailablePointerTypes( |
| 307 mainSettings.getAvailablePointerTypes()); |
| 308 m_page->settings().setPrimaryPointerType( |
| 309 mainSettings.getPrimaryPointerType()); |
| 306 | 310 |
| 307 provideContextFeaturesTo(*m_page, WTF::makeUnique<PagePopupFeaturesClient>()); | 311 provideContextFeaturesTo(*m_page, WTF::makeUnique<PagePopupFeaturesClient>()); |
| 308 DEFINE_STATIC_LOCAL(LocalFrameClient, emptyLocalFrameClient, | 312 DEFINE_STATIC_LOCAL(LocalFrameClient, emptyLocalFrameClient, |
| 309 (EmptyLocalFrameClient::create())); | 313 (EmptyLocalFrameClient::create())); |
| 310 LocalFrame* frame = LocalFrame::create(&emptyLocalFrameClient, m_page, 0); | 314 LocalFrame* frame = LocalFrame::create(&emptyLocalFrameClient, m_page, 0); |
| 311 frame->setPagePopupOwner(m_popupClient->ownerElement()); | 315 frame->setPagePopupOwner(m_popupClient->ownerElement()); |
| 312 frame->setView(FrameView::create(*frame)); | 316 frame->setView(FrameView::create(*frame)); |
| 313 frame->init(); | 317 frame->init(); |
| 314 frame->view()->setParentVisible(true); | 318 frame->view()->setParentVisible(true); |
| 315 frame->view()->setSelfVisible(true); | 319 frame->view()->setSelfVisible(true); |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 // A WebPagePopupImpl instance usually has two references. | 592 // A WebPagePopupImpl instance usually has two references. |
| 589 // - One owned by the instance itself. It represents the visible widget. | 593 // - One owned by the instance itself. It represents the visible widget. |
| 590 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the | 594 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the |
| 591 // WebPagePopupImpl to close. | 595 // WebPagePopupImpl to close. |
| 592 // We need them because the closing operation is asynchronous and the widget | 596 // We need them because the closing operation is asynchronous and the widget |
| 593 // can be closed while the WebViewImpl is unaware of it. | 597 // can be closed while the WebViewImpl is unaware of it. |
| 594 return adoptRef(new WebPagePopupImpl(client)).leakRef(); | 598 return adoptRef(new WebPagePopupImpl(client)).leakRef(); |
| 595 } | 599 } |
| 596 | 600 |
| 597 } // namespace blink | 601 } // namespace blink |
| OLD | NEW |