| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 2570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2581 return 0; | 2581 return 0; |
| 2582 } | 2582 } |
| 2583 | 2583 |
| 2584 | 2584 |
| 2585 void WebViewImpl::setVisibilityState(WebPageVisibilityState visibilityState, | 2585 void WebViewImpl::setVisibilityState(WebPageVisibilityState visibilityState, |
| 2586 bool isInitialState) { | 2586 bool isInitialState) { |
| 2587 #if ENABLE(PAGE_VISIBILITY_API) | 2587 #if ENABLE(PAGE_VISIBILITY_API) |
| 2588 if (!page()) | 2588 if (!page()) |
| 2589 return; | 2589 return; |
| 2590 | 2590 |
| 2591 ASSERT(visibilityState == WebPageVisibilityStateVisible || visibilityState =
= WebPageVisibilityStateHidden); | 2591 ASSERT(visibilityState == WebPageVisibilityStateVisible |
| 2592 || visibilityState == WebPageVisibilityStateHidden |
| 2593 || visibilityState == WebPageVisibilityStatePrerender); |
| 2592 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int>
(visibilityState)), isInitialState); | 2594 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int>
(visibilityState)), isInitialState); |
| 2593 #endif | 2595 #endif |
| 2594 } | 2596 } |
| 2595 | 2597 |
| 2596 } // namespace WebKit | 2598 } // namespace WebKit |
| OLD | NEW |