| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All |
| 3 * Rights Reserved. | 3 * Rights Reserved. |
| 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
| 5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "core/inspector/InspectorInstrumentation.h" | 47 #include "core/inspector/InspectorInstrumentation.h" |
| 48 #include "core/layout/TextAutosizer.h" | 48 #include "core/layout/TextAutosizer.h" |
| 49 #include "core/page/AutoscrollController.h" | 49 #include "core/page/AutoscrollController.h" |
| 50 #include "core/page/ChromeClient.h" | 50 #include "core/page/ChromeClient.h" |
| 51 #include "core/page/ContextMenuController.h" | 51 #include "core/page/ContextMenuController.h" |
| 52 #include "core/page/DragController.h" | 52 #include "core/page/DragController.h" |
| 53 #include "core/page/FocusController.h" | 53 #include "core/page/FocusController.h" |
| 54 #include "core/page/PointerLockController.h" | 54 #include "core/page/PointerLockController.h" |
| 55 #include "core/page/ScopedPageSuspender.h" | 55 #include "core/page/ScopedPageSuspender.h" |
| 56 #include "core/page/ValidationMessageClient.h" | 56 #include "core/page/ValidationMessageClient.h" |
| 57 #include "core/page/scrolling/OverscrollController.h" |
| 57 #include "core/page/scrolling/ScrollingCoordinator.h" | 58 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 58 #include "core/page/scrolling/TopDocumentRootScrollerController.h" | 59 #include "core/page/scrolling/TopDocumentRootScrollerController.h" |
| 59 #include "core/paint/PaintLayer.h" | 60 #include "core/paint/PaintLayer.h" |
| 60 #include "platform/WebFrameScheduler.h" | 61 #include "platform/WebFrameScheduler.h" |
| 61 #include "platform/graphics/GraphicsLayer.h" | 62 #include "platform/graphics/GraphicsLayer.h" |
| 62 #include "platform/loader/fetch/ResourceFetcher.h" | 63 #include "platform/loader/fetch/ResourceFetcher.h" |
| 63 #include "platform/plugins/PluginData.h" | 64 #include "platform/plugins/PluginData.h" |
| 64 #include "public/platform/Platform.h" | 65 #include "public/platform/Platform.h" |
| 65 | 66 |
| 66 namespace blink { | 67 namespace blink { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 m_contextMenuController( | 106 m_contextMenuController( |
| 106 ContextMenuController::create(this, pageClients.contextMenuClient)), | 107 ContextMenuController::create(this, pageClients.contextMenuClient)), |
| 107 m_pageScaleConstraintsSet(PageScaleConstraintsSet::create()), | 108 m_pageScaleConstraintsSet(PageScaleConstraintsSet::create()), |
| 108 m_pointerLockController(PointerLockController::create(this)), | 109 m_pointerLockController(PointerLockController::create(this)), |
| 109 m_browserControls(BrowserControls::create(*this)), | 110 m_browserControls(BrowserControls::create(*this)), |
| 110 m_consoleMessageStorage(new ConsoleMessageStorage()), | 111 m_consoleMessageStorage(new ConsoleMessageStorage()), |
| 111 m_eventHandlerRegistry(new EventHandlerRegistry(*this)), | 112 m_eventHandlerRegistry(new EventHandlerRegistry(*this)), |
| 112 m_globalRootScrollerController( | 113 m_globalRootScrollerController( |
| 113 TopDocumentRootScrollerController::create(*this)), | 114 TopDocumentRootScrollerController::create(*this)), |
| 114 m_visualViewport(VisualViewport::create(*this)), | 115 m_visualViewport(VisualViewport::create(*this)), |
| 116 m_overscrollController( |
| 117 OverscrollController::create(visualViewport(), chromeClient())), |
| 115 m_mainFrame(nullptr), | 118 m_mainFrame(nullptr), |
| 116 m_editorClient(pageClients.editorClient), | 119 m_editorClient(pageClients.editorClient), |
| 117 m_spellCheckerClient(pageClients.spellCheckerClient), | 120 m_spellCheckerClient(pageClients.spellCheckerClient), |
| 118 m_useCounter(pageClients.chromeClient && | 121 m_useCounter(pageClients.chromeClient && |
| 119 pageClients.chromeClient->isSVGImageChromeClient() | 122 pageClients.chromeClient->isSVGImageChromeClient() |
| 120 ? UseCounter::SVGImageContext | 123 ? UseCounter::SVGImageContext |
| 121 : UseCounter::DefaultContext), | 124 : UseCounter::DefaultContext), |
| 122 m_openedByDOM(false), | 125 m_openedByDOM(false), |
| 123 m_tabKeyCyclesThroughElements(true), | 126 m_tabKeyCyclesThroughElements(true), |
| 124 m_suspended(false), | 127 m_suspended(false), |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 } | 202 } |
| 200 | 203 |
| 201 VisualViewport& Page::visualViewport() { | 204 VisualViewport& Page::visualViewport() { |
| 202 return *m_visualViewport; | 205 return *m_visualViewport; |
| 203 } | 206 } |
| 204 | 207 |
| 205 const VisualViewport& Page::visualViewport() const { | 208 const VisualViewport& Page::visualViewport() const { |
| 206 return *m_visualViewport; | 209 return *m_visualViewport; |
| 207 } | 210 } |
| 208 | 211 |
| 212 OverscrollController& Page::overscrollController() { |
| 213 return *m_overscrollController; |
| 214 } |
| 215 |
| 216 const OverscrollController& Page::overscrollController() const { |
| 217 return *m_overscrollController; |
| 218 } |
| 219 |
| 209 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { | 220 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { |
| 210 DisableCompositingQueryAsserts disabler; | 221 DisableCompositingQueryAsserts disabler; |
| 211 if (ScrollingCoordinator* scrollingCoordinator = | 222 if (ScrollingCoordinator* scrollingCoordinator = |
| 212 this->scrollingCoordinator()) { | 223 this->scrollingCoordinator()) { |
| 213 // Hits in compositing/iframes/iframe-composited-scrolling.html | 224 // Hits in compositing/iframes/iframe-composited-scrolling.html |
| 214 scrollingCoordinator->updateAfterCompositingChangeIfNeeded(); | 225 scrollingCoordinator->updateAfterCompositingChangeIfNeeded(); |
| 215 } | 226 } |
| 216 | 227 |
| 217 GraphicsLayer* layer = | 228 GraphicsLayer* layer = |
| 218 frame->view()->layoutViewportScrollableArea()->layerForScrolling(); | 229 frame->view()->layoutViewportScrollableArea()->layerForScrolling(); |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 visitor->trace(m_dragController); | 592 visitor->trace(m_dragController); |
| 582 visitor->trace(m_focusController); | 593 visitor->trace(m_focusController); |
| 583 visitor->trace(m_contextMenuController); | 594 visitor->trace(m_contextMenuController); |
| 584 visitor->trace(m_pointerLockController); | 595 visitor->trace(m_pointerLockController); |
| 585 visitor->trace(m_scrollingCoordinator); | 596 visitor->trace(m_scrollingCoordinator); |
| 586 visitor->trace(m_browserControls); | 597 visitor->trace(m_browserControls); |
| 587 visitor->trace(m_consoleMessageStorage); | 598 visitor->trace(m_consoleMessageStorage); |
| 588 visitor->trace(m_eventHandlerRegistry); | 599 visitor->trace(m_eventHandlerRegistry); |
| 589 visitor->trace(m_globalRootScrollerController); | 600 visitor->trace(m_globalRootScrollerController); |
| 590 visitor->trace(m_visualViewport); | 601 visitor->trace(m_visualViewport); |
| 602 visitor->trace(m_overscrollController); |
| 591 visitor->trace(m_mainFrame); | 603 visitor->trace(m_mainFrame); |
| 592 visitor->trace(m_validationMessageClient); | 604 visitor->trace(m_validationMessageClient); |
| 593 visitor->trace(m_useCounter); | 605 visitor->trace(m_useCounter); |
| 594 visitor->trace(m_frameHost); | 606 visitor->trace(m_frameHost); |
| 595 Supplementable<Page>::trace(visitor); | 607 Supplementable<Page>::trace(visitor); |
| 596 PageVisibilityNotifier::trace(visitor); | 608 PageVisibilityNotifier::trace(visitor); |
| 597 } | 609 } |
| 598 | 610 |
| 599 void Page::layerTreeViewInitialized(WebLayerTreeView& layerTreeView, | 611 void Page::layerTreeViewInitialized(WebLayerTreeView& layerTreeView, |
| 600 FrameView* view) { | 612 FrameView* view) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 : chromeClient(nullptr), | 644 : chromeClient(nullptr), |
| 633 contextMenuClient(nullptr), | 645 contextMenuClient(nullptr), |
| 634 editorClient(nullptr), | 646 editorClient(nullptr), |
| 635 spellCheckerClient(nullptr) {} | 647 spellCheckerClient(nullptr) {} |
| 636 | 648 |
| 637 Page::PageClients::~PageClients() {} | 649 Page::PageClients::~PageClients() {} |
| 638 | 650 |
| 639 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 651 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
| 640 | 652 |
| 641 } // namespace blink | 653 } // namespace blink |
| OLD | NEW |