| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
     ights Reserved. | 2  * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
     ights Reserved. | 
| 3  * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
     bile.com/) | 3  * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
     bile.com/) | 
| 4  * | 4  * | 
| 5  * This library is free software; you can redistribute it and/or | 5  * This library is free software; you can redistribute it and/or | 
| 6  * modify it under the terms of the GNU Library General Public | 6  * modify it under the terms of the GNU Library General Public | 
| 7  * License as published by the Free Software Foundation; either | 7  * License as published by the Free Software Foundation; either | 
| 8  * version 2 of the License, or (at your option) any later version. | 8  * version 2 of the License, or (at your option) any later version. | 
| 9  * This library is distributed in the hope that it will be useful, | 9  * This library is distributed in the hope that it will be useful, | 
| 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
| 37 #include "core/page/Chrome.h" | 37 #include "core/page/Chrome.h" | 
| 38 #include "core/page/ContextMenuController.h" | 38 #include "core/page/ContextMenuController.h" | 
| 39 #include "core/page/DOMTimer.h" | 39 #include "core/page/DOMTimer.h" | 
| 40 #include "core/page/DragController.h" | 40 #include "core/page/DragController.h" | 
| 41 #include "core/page/FocusController.h" | 41 #include "core/page/FocusController.h" | 
| 42 #include "core/page/Frame.h" | 42 #include "core/page/Frame.h" | 
| 43 #include "core/page/FrameTree.h" | 43 #include "core/page/FrameTree.h" | 
| 44 #include "core/page/FrameView.h" | 44 #include "core/page/FrameView.h" | 
| 45 #include "core/page/PageConsole.h" | 45 #include "core/page/PageConsole.h" | 
| 46 #include "core/page/PageGroup.h" | 46 #include "core/page/PageGroup.h" | 
|  | 47 #include "core/page/PageLifecycleNotifier.h" | 
| 47 #include "core/page/PointerLockController.h" | 48 #include "core/page/PointerLockController.h" | 
| 48 #include "core/page/Settings.h" | 49 #include "core/page/Settings.h" | 
| 49 #include "core/page/scrolling/ScrollingCoordinator.h" | 50 #include "core/page/scrolling/ScrollingCoordinator.h" | 
| 50 #include "core/platform/network/NetworkStateNotifier.h" | 51 #include "core/platform/network/NetworkStateNotifier.h" | 
| 51 #include "core/plugins/PluginData.h" | 52 #include "core/plugins/PluginData.h" | 
| 52 #include "core/rendering/RenderArena.h" | 53 #include "core/rendering/RenderArena.h" | 
| 53 #include "core/rendering/RenderTheme.h" | 54 #include "core/rendering/RenderTheme.h" | 
| 54 #include "core/rendering/RenderView.h" | 55 #include "core/rendering/RenderView.h" | 
| 55 #include "core/storage/StorageNamespace.h" | 56 #include "core/storage/StorageNamespace.h" | 
| 56 #include "wtf/HashMap.h" | 57 #include "wtf/HashMap.h" | 
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 618 { | 619 { | 
| 619     if (m_visibilityState == visibilityState) | 620     if (m_visibilityState == visibilityState) | 
| 620         return; | 621         return; | 
| 621     m_visibilityState = visibilityState; | 622     m_visibilityState = visibilityState; | 
| 622 | 623 | 
| 623     if (visibilityState == WebCore::PageVisibilityStateHidden) | 624     if (visibilityState == WebCore::PageVisibilityStateHidden) | 
| 624         setTimerAlignmentInterval(DOMTimer::hiddenPageAlignmentInterval()); | 625         setTimerAlignmentInterval(DOMTimer::hiddenPageAlignmentInterval()); | 
| 625     else | 626     else | 
| 626         setTimerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()); | 627         setTimerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()); | 
| 627 | 628 | 
|  | 629     if (!isInitialState) | 
|  | 630         lifecycleNotifier()->notifyPageVisibilityChanged(); | 
|  | 631 | 
| 628     if (!isInitialState && m_mainFrame) | 632     if (!isInitialState && m_mainFrame) | 
| 629         m_mainFrame->dispatchVisibilityStateChangeEvent(); | 633         m_mainFrame->dispatchVisibilityStateChangeEvent(); | 
| 630 } | 634 } | 
| 631 | 635 | 
| 632 PageVisibilityState Page::visibilityState() const | 636 PageVisibilityState Page::visibilityState() const | 
| 633 { | 637 { | 
| 634     return m_visibilityState; | 638     return m_visibilityState; | 
| 635 } | 639 } | 
| 636 | 640 | 
| 637 void Page::addLayoutMilestones(LayoutMilestones milestones) | 641 void Page::addLayoutMilestones(LayoutMilestones milestones) | 
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 776     m_multisamplingChangedObservers.remove(observer); | 780     m_multisamplingChangedObservers.remove(observer); | 
| 777 } | 781 } | 
| 778 | 782 | 
| 779 void Page::multisamplingChanged() | 783 void Page::multisamplingChanged() | 
| 780 { | 784 { | 
| 781     HashSet<MultisamplingChangedObserver*>::iterator stop = m_multisamplingChang
     edObservers.end(); | 785     HashSet<MultisamplingChangedObserver*>::iterator stop = m_multisamplingChang
     edObservers.end(); | 
| 782     for (HashSet<MultisamplingChangedObserver*>::iterator it = m_multisamplingCh
     angedObservers.begin(); it != stop; ++it) | 786     for (HashSet<MultisamplingChangedObserver*>::iterator it = m_multisamplingCh
     angedObservers.begin(); it != stop; ++it) | 
| 783         (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled()); | 787         (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled()); | 
| 784 } | 788 } | 
| 785 | 789 | 
|  | 790 PageLifecycleNotifier* Page::lifecycleNotifier() | 
|  | 791 { | 
|  | 792     return static_cast<PageLifecycleNotifier*>(LifecycleContext::lifecycleNotifi
     er()); | 
|  | 793 } | 
|  | 794 | 
|  | 795 PassOwnPtr<LifecycleNotifier> Page::createLifecycleNotifier() | 
|  | 796 { | 
|  | 797     return PageLifecycleNotifier::create(this); | 
|  | 798 } | 
|  | 799 | 
| 786 Page::PageClients::PageClients() | 800 Page::PageClients::PageClients() | 
| 787     : chromeClient(0) | 801     : chromeClient(0) | 
| 788     , contextMenuClient(0) | 802     , contextMenuClient(0) | 
| 789     , editorClient(0) | 803     , editorClient(0) | 
| 790     , dragClient(0) | 804     , dragClient(0) | 
| 791     , inspectorClient(0) | 805     , inspectorClient(0) | 
| 792 { | 806 { | 
| 793 } | 807 } | 
| 794 | 808 | 
| 795 Page::PageClients::~PageClients() | 809 Page::PageClients::~PageClients() | 
| 796 { | 810 { | 
| 797 } | 811 } | 
| 798 | 812 | 
| 799 } // namespace WebCore | 813 } // namespace WebCore | 
| OLD | NEW | 
|---|