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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 { | 319 { |
320 static const double waitingTimeBeforeCompressingString = 10; | 320 static const double waitingTimeBeforeCompressingString = 10; |
321 | 321 |
322 if (m_visibilityState == visibilityState) | 322 if (m_visibilityState == visibilityState) |
323 return; | 323 return; |
324 m_visibilityState = visibilityState; | 324 m_visibilityState = visibilityState; |
325 | 325 |
326 if (!isInitialState) | 326 if (!isInitialState) |
327 notifyPageVisibilityChanged(); | 327 notifyPageVisibilityChanged(); |
328 | 328 |
329 if (!isInitialState && m_mainFrame && m_mainFrame->isLocalFrame()) | 329 if (!isInitialState && m_mainFrame) |
330 deprecatedLocalMainFrame()->didChangeVisibilityState(); | 330 m_mainFrame->didChangeVisibilityState(); |
331 | 331 |
332 // Compress CompressibleStrings when 10 seconds have passed since the page | 332 // Compress CompressibleStrings when 10 seconds have passed since the page |
333 // went to background. | 333 // went to background. |
334 if (m_visibilityState == PageVisibilityStateHidden) { | 334 if (m_visibilityState == PageVisibilityStateHidden) { |
335 if (!m_timerForCompressStrings.isActive()) | 335 if (!m_timerForCompressStrings.isActive()) |
336 m_timerForCompressStrings.startOneShot(waitingTimeBeforeCompressingS
tring, BLINK_FROM_HERE); | 336 m_timerForCompressStrings.startOneShot(waitingTimeBeforeCompressingS
tring, BLINK_FROM_HERE); |
337 } else if (m_timerForCompressStrings.isActive()) { | 337 } else if (m_timerForCompressStrings.isActive()) { |
338 m_timerForCompressStrings.stop(); | 338 m_timerForCompressStrings.stop(); |
339 } | 339 } |
340 } | 340 } |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 { | 536 { |
537 } | 537 } |
538 | 538 |
539 Page::PageClients::~PageClients() | 539 Page::PageClients::~PageClients() |
540 { | 540 { |
541 } | 541 } |
542 | 542 |
543 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 543 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
544 | 544 |
545 } // namespace blink | 545 } // namespace blink |
OLD | NEW |