| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 { | 335 { |
| 336 static const double waitingTimeBeforeCompressingString = 10; | 336 static const double waitingTimeBeforeCompressingString = 10; |
| 337 | 337 |
| 338 if (m_visibilityState == visibilityState) | 338 if (m_visibilityState == visibilityState) |
| 339 return; | 339 return; |
| 340 m_visibilityState = visibilityState; | 340 m_visibilityState = visibilityState; |
| 341 | 341 |
| 342 if (!isInitialState) | 342 if (!isInitialState) |
| 343 notifyPageVisibilityChanged(); | 343 notifyPageVisibilityChanged(); |
| 344 | 344 |
| 345 if (!isInitialState && m_mainFrame && m_mainFrame->isLocalFrame()) | 345 if (!isInitialState && m_mainFrame) |
| 346 deprecatedLocalMainFrame()->didChangeVisibilityState(); | 346 m_mainFrame->didChangeVisibilityState(); |
| 347 | 347 |
| 348 // Compress CompressibleStrings when 10 seconds have passed since the page | 348 // Compress CompressibleStrings when 10 seconds have passed since the page |
| 349 // went to background. | 349 // went to background. |
| 350 if (m_visibilityState == PageVisibilityStateHidden) { | 350 if (m_visibilityState == PageVisibilityStateHidden) { |
| 351 if (!m_timerForCompressStrings.isActive()) | 351 if (!m_timerForCompressStrings.isActive()) |
| 352 m_timerForCompressStrings.startOneShot(waitingTimeBeforeCompressingS
tring, BLINK_FROM_HERE); | 352 m_timerForCompressStrings.startOneShot(waitingTimeBeforeCompressingS
tring, BLINK_FROM_HERE); |
| 353 } else if (m_timerForCompressStrings.isActive()) { | 353 } else if (m_timerForCompressStrings.isActive()) { |
| 354 m_timerForCompressStrings.stop(); | 354 m_timerForCompressStrings.stop(); |
| 355 } | 355 } |
| 356 } | 356 } |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 { | 560 { |
| 561 } | 561 } |
| 562 | 562 |
| 563 Page::PageClients::~PageClients() | 563 Page::PageClients::~PageClients() |
| 564 { | 564 { |
| 565 } | 565 } |
| 566 | 566 |
| 567 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 567 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
| 568 | 568 |
| 569 } // namespace blink | 569 } // namespace blink |
| OLD | NEW |