Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 7121007: Merge 88174 - 2011-06-06 Shishir Agrawal <shishir@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebKit/chromium/src/AssertMatchingEnums.cpp ('k') | Tools/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/AssertMatchingEnums.cpp ('k') | Tools/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698