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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 { | 348 { |
349 static const double waitingTimeBeforeCompressingString = 10; | 349 static const double waitingTimeBeforeCompressingString = 10; |
350 | 350 |
351 if (m_visibilityState == visibilityState) | 351 if (m_visibilityState == visibilityState) |
352 return; | 352 return; |
353 m_visibilityState = visibilityState; | 353 m_visibilityState = visibilityState; |
354 | 354 |
355 if (!isInitialState) | 355 if (!isInitialState) |
356 notifyPageVisibilityChanged(); | 356 notifyPageVisibilityChanged(); |
357 | 357 |
358 if (!isInitialState && m_mainFrame && m_mainFrame->isLocalFrame()) | 358 if (!isInitialState && m_mainFrame) |
359 deprecatedLocalMainFrame()->didChangeVisibilityState(); | 359 m_mainFrame->didChangeVisibilityState(); |
360 | 360 |
361 // Compress CompressibleStrings when 10 seconds have passed since the page | 361 // Compress CompressibleStrings when 10 seconds have passed since the page |
362 // went to background. | 362 // went to background. |
363 if (m_visibilityState == PageVisibilityStateHidden) { | 363 if (m_visibilityState == PageVisibilityStateHidden) { |
364 if (!m_timerForCompressStrings.isActive()) | 364 if (!m_timerForCompressStrings.isActive()) |
365 m_timerForCompressStrings.startOneShot(waitingTimeBeforeCompressingS
tring, BLINK_FROM_HERE); | 365 m_timerForCompressStrings.startOneShot(waitingTimeBeforeCompressingS
tring, BLINK_FROM_HERE); |
366 } else if (m_timerForCompressStrings.isActive()) { | 366 } else if (m_timerForCompressStrings.isActive()) { |
367 m_timerForCompressStrings.stop(); | 367 m_timerForCompressStrings.stop(); |
368 } | 368 } |
369 } | 369 } |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 { | 573 { |
574 } | 574 } |
575 | 575 |
576 Page::PageClients::~PageClients() | 576 Page::PageClients::~PageClients() |
577 { | 577 { |
578 } | 578 } |
579 | 579 |
580 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 580 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
581 | 581 |
582 } // namespace blink | 582 } // namespace blink |
OLD | NEW |