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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 454 |
455 if (visibilityState == WebCore::PageVisibilityStateHidden) | 455 if (visibilityState == WebCore::PageVisibilityStateHidden) |
456 setTimerAlignmentInterval(DOMTimer::hiddenPageAlignmentInterval()); | 456 setTimerAlignmentInterval(DOMTimer::hiddenPageAlignmentInterval()); |
457 else | 457 else |
458 setTimerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()); | 458 setTimerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()); |
459 | 459 |
460 if (!isInitialState) | 460 if (!isInitialState) |
461 lifecycleNotifier().notifyPageVisibilityChanged(); | 461 lifecycleNotifier().notifyPageVisibilityChanged(); |
462 | 462 |
463 if (!isInitialState && m_mainFrame) | 463 if (!isInitialState && m_mainFrame) |
464 m_mainFrame->dispatchVisibilityStateChangeEvent(); | 464 m_mainFrame->didChangeVisibilityState(); |
465 } | 465 } |
466 | 466 |
467 PageVisibilityState Page::visibilityState() const | 467 PageVisibilityState Page::visibilityState() const |
468 { | 468 { |
469 return m_visibilityState; | 469 return m_visibilityState; |
470 } | 470 } |
471 | 471 |
472 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe
r) | 472 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe
r) |
473 { | 473 { |
474 m_multisamplingChangedObservers.add(observer); | 474 m_multisamplingChangedObservers.add(observer); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 , backForwardClient(0) | 547 , backForwardClient(0) |
548 , spellCheckerClient(0) | 548 , spellCheckerClient(0) |
549 { | 549 { |
550 } | 550 } |
551 | 551 |
552 Page::PageClients::~PageClients() | 552 Page::PageClients::~PageClients() |
553 { | 553 { |
554 } | 554 } |
555 | 555 |
556 } // namespace WebCore | 556 } // namespace WebCore |
OLD | NEW |