| 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 14 matching lines...) Expand all Loading... |
| 25 #include "core/css/resolver/ViewportStyleResolver.h" | 25 #include "core/css/resolver/ViewportStyleResolver.h" |
| 26 #include "core/dom/ClientRectList.h" | 26 #include "core/dom/ClientRectList.h" |
| 27 #include "core/dom/StyleChangeReason.h" | 27 #include "core/dom/StyleChangeReason.h" |
| 28 #include "core/dom/StyleEngine.h" | 28 #include "core/dom/StyleEngine.h" |
| 29 #include "core/dom/VisitedLinkState.h" | 29 #include "core/dom/VisitedLinkState.h" |
| 30 #include "core/editing/DragCaret.h" | 30 #include "core/editing/DragCaret.h" |
| 31 #include "core/editing/markers/DocumentMarkerController.h" | 31 #include "core/editing/markers/DocumentMarkerController.h" |
| 32 #include "core/events/Event.h" | 32 #include "core/events/Event.h" |
| 33 #include "core/frame/BrowserControls.h" | 33 #include "core/frame/BrowserControls.h" |
| 34 #include "core/frame/DOMTimer.h" | 34 #include "core/frame/DOMTimer.h" |
| 35 #include "core/frame/EventHandlerRegistry.h" |
| 35 #include "core/frame/FrameConsole.h" | 36 #include "core/frame/FrameConsole.h" |
| 36 #include "core/frame/FrameHost.h" | 37 #include "core/frame/FrameHost.h" |
| 37 #include "core/frame/FrameView.h" | 38 #include "core/frame/FrameView.h" |
| 38 #include "core/frame/PageScaleConstraints.h" | 39 #include "core/frame/PageScaleConstraints.h" |
| 39 #include "core/frame/PageScaleConstraintsSet.h" | 40 #include "core/frame/PageScaleConstraintsSet.h" |
| 40 #include "core/frame/RemoteFrame.h" | 41 #include "core/frame/RemoteFrame.h" |
| 41 #include "core/frame/RemoteFrameView.h" | 42 #include "core/frame/RemoteFrameView.h" |
| 42 #include "core/frame/Settings.h" | 43 #include "core/frame/Settings.h" |
| 43 #include "core/frame/VisualViewport.h" | 44 #include "core/frame/VisualViewport.h" |
| 44 #include "core/html/HTMLMediaElement.h" | 45 #include "core/html/HTMLMediaElement.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 m_autoscrollController(AutoscrollController::create(*this)), | 99 m_autoscrollController(AutoscrollController::create(*this)), |
| 99 m_chromeClient(pageClients.chromeClient), | 100 m_chromeClient(pageClients.chromeClient), |
| 100 m_dragCaret(DragCaret::create()), | 101 m_dragCaret(DragCaret::create()), |
| 101 m_dragController(DragController::create(this)), | 102 m_dragController(DragController::create(this)), |
| 102 m_focusController(FocusController::create(this)), | 103 m_focusController(FocusController::create(this)), |
| 103 m_contextMenuController( | 104 m_contextMenuController( |
| 104 ContextMenuController::create(this, pageClients.contextMenuClient)), | 105 ContextMenuController::create(this, pageClients.contextMenuClient)), |
| 105 m_pageScaleConstraintsSet(PageScaleConstraintsSet::create()), | 106 m_pageScaleConstraintsSet(PageScaleConstraintsSet::create()), |
| 106 m_pointerLockController(PointerLockController::create(this)), | 107 m_pointerLockController(PointerLockController::create(this)), |
| 107 m_browserControls(BrowserControls::create(*this)), | 108 m_browserControls(BrowserControls::create(*this)), |
| 109 m_eventHandlerRegistry(new EventHandlerRegistry(*this)), |
| 108 m_mainFrame(nullptr), | 110 m_mainFrame(nullptr), |
| 109 m_editorClient(pageClients.editorClient), | 111 m_editorClient(pageClients.editorClient), |
| 110 m_spellCheckerClient(pageClients.spellCheckerClient), | 112 m_spellCheckerClient(pageClients.spellCheckerClient), |
| 111 m_useCounter(pageClients.chromeClient && | 113 m_useCounter(pageClients.chromeClient && |
| 112 pageClients.chromeClient->isSVGImageChromeClient() | 114 pageClients.chromeClient->isSVGImageChromeClient() |
| 113 ? UseCounter::SVGImageContext | 115 ? UseCounter::SVGImageContext |
| 114 : UseCounter::DefaultContext), | 116 : UseCounter::DefaultContext), |
| 115 m_openedByDOM(false), | 117 m_openedByDOM(false), |
| 116 m_tabKeyCyclesThroughElements(true), | 118 m_tabKeyCyclesThroughElements(true), |
| 117 m_suspended(false), | 119 m_suspended(false), |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } | 166 } |
| 165 | 167 |
| 166 BrowserControls& Page::browserControls() { | 168 BrowserControls& Page::browserControls() { |
| 167 return *m_browserControls; | 169 return *m_browserControls; |
| 168 } | 170 } |
| 169 | 171 |
| 170 const BrowserControls& Page::browserControls() const { | 172 const BrowserControls& Page::browserControls() const { |
| 171 return *m_browserControls; | 173 return *m_browserControls; |
| 172 } | 174 } |
| 173 | 175 |
| 176 EventHandlerRegistry& Page::eventHandlerRegistry() { |
| 177 return *m_eventHandlerRegistry; |
| 178 } |
| 179 |
| 180 const EventHandlerRegistry& Page::eventHandlerRegistry() const { |
| 181 return *m_eventHandlerRegistry; |
| 182 } |
| 183 |
| 174 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { | 184 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { |
| 175 DisableCompositingQueryAsserts disabler; | 185 DisableCompositingQueryAsserts disabler; |
| 176 if (ScrollingCoordinator* scrollingCoordinator = | 186 if (ScrollingCoordinator* scrollingCoordinator = |
| 177 this->scrollingCoordinator()) { | 187 this->scrollingCoordinator()) { |
| 178 // Hits in compositing/iframes/iframe-composited-scrolling.html | 188 // Hits in compositing/iframes/iframe-composited-scrolling.html |
| 179 scrollingCoordinator->updateAfterCompositingChangeIfNeeded(); | 189 scrollingCoordinator->updateAfterCompositingChangeIfNeeded(); |
| 180 } | 190 } |
| 181 | 191 |
| 182 GraphicsLayer* layer = | 192 GraphicsLayer* layer = |
| 183 frame->view()->layoutViewportScrollableArea()->layerForScrolling(); | 193 frame->view()->layoutViewportScrollableArea()->layerForScrolling(); |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 visitor->trace(m_animator); | 553 visitor->trace(m_animator); |
| 544 visitor->trace(m_autoscrollController); | 554 visitor->trace(m_autoscrollController); |
| 545 visitor->trace(m_chromeClient); | 555 visitor->trace(m_chromeClient); |
| 546 visitor->trace(m_dragCaret); | 556 visitor->trace(m_dragCaret); |
| 547 visitor->trace(m_dragController); | 557 visitor->trace(m_dragController); |
| 548 visitor->trace(m_focusController); | 558 visitor->trace(m_focusController); |
| 549 visitor->trace(m_contextMenuController); | 559 visitor->trace(m_contextMenuController); |
| 550 visitor->trace(m_pointerLockController); | 560 visitor->trace(m_pointerLockController); |
| 551 visitor->trace(m_scrollingCoordinator); | 561 visitor->trace(m_scrollingCoordinator); |
| 552 visitor->trace(m_browserControls); | 562 visitor->trace(m_browserControls); |
| 563 visitor->trace(m_eventHandlerRegistry); |
| 553 visitor->trace(m_mainFrame); | 564 visitor->trace(m_mainFrame); |
| 554 visitor->trace(m_validationMessageClient); | 565 visitor->trace(m_validationMessageClient); |
| 555 visitor->trace(m_useCounter); | 566 visitor->trace(m_useCounter); |
| 556 visitor->trace(m_frameHost); | 567 visitor->trace(m_frameHost); |
| 557 Supplementable<Page>::trace(visitor); | 568 Supplementable<Page>::trace(visitor); |
| 558 PageVisibilityNotifier::trace(visitor); | 569 PageVisibilityNotifier::trace(visitor); |
| 559 } | 570 } |
| 560 | 571 |
| 561 void Page::layerTreeViewInitialized(WebLayerTreeView& layerTreeView, | 572 void Page::layerTreeViewInitialized(WebLayerTreeView& layerTreeView, |
| 562 FrameView* view) { | 573 FrameView* view) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 : chromeClient(nullptr), | 605 : chromeClient(nullptr), |
| 595 contextMenuClient(nullptr), | 606 contextMenuClient(nullptr), |
| 596 editorClient(nullptr), | 607 editorClient(nullptr), |
| 597 spellCheckerClient(nullptr) {} | 608 spellCheckerClient(nullptr) {} |
| 598 | 609 |
| 599 Page::PageClients::~PageClients() {} | 610 Page::PageClients::~PageClients() {} |
| 600 | 611 |
| 601 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 612 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
| 602 | 613 |
| 603 } // namespace blink | 614 } // namespace blink |
| OLD | NEW |