Changeset 152579 in webkit
- Timestamp:
- Jul 11, 2013, 3:33:11 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r152574 r152579 1 2013-07-11 Dan Bernstein <mitz@apple.com> 2 3 [mac] No API for getting the page visibility state of a WebView 4 https://bugs.webkit.org/show_bug.cgi?id=118578 5 6 Reviewed by Simon Fraser. 7 8 * WebCore.exp.in: Export WebCore::Page::visibilityState(). 9 1 10 2013-07-11 Mario Sanchez Prada <mario.prada@samsung.com> 2 11 -
trunk/Source/WebCore/WebCore.exp.in
r152425 r152579 1566 1566 __ZNK7WebCore4Page14renderTreeSizeEv 1567 1567 __ZNK7WebCore4Page15backForwardListEv 1568 __ZNK7WebCore4Page15visibilityStateEv 1568 1569 __ZNK7WebCore4Page16hasSeenAnyPluginEv 1569 1570 __ZNK7WebCore4Page17viewportArgumentsEv -
trunk/Source/WebKit/mac/ChangeLog
r152571 r152579 1 2013-07-11 Dan Bernstein <mitz@apple.com> 2 3 [mac] No API for getting the page visibility state of a WebView 4 https://bugs.webkit.org/show_bug.cgi?id=118578 5 6 Reviewed by Simon Fraser. 7 8 * WebView/WebView.mm: 9 (kit): Added. Converts from WebCore::PageVisibilityState to WebPageVisibilityState. 10 (-[WebView _visibilityState]): Added. 11 * WebView/WebViewPrivate.h: Declared -_visibilityState. 12 1 13 2013-07-11 Timothy Hatcher <timothy@apple.com> 2 14 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r152348 r152579 431 431 } 432 432 433 static WebPageVisibilityState kit(PageVisibilityState visibilityState) 434 { 435 switch (visibilityState) { 436 case PageVisibilityStateVisible: 437 return WebPageVisibilityStateVisible; 438 case PageVisibilityStateHidden: 439 return WebPageVisibilityStateHidden; 440 case PageVisibilityStatePrerender: 441 return WebPageVisibilityStatePrerender; 442 case PageVisibilityStateUnloaded: 443 return WebPageVisibilityStateUnloaded; 444 } 445 446 ASSERT_NOT_REACHED(); 447 return WebPageVisibilityStateVisible; 448 } 449 433 450 @interface WebView (WebFileInternal) 434 451 - (float)_deviceScaleFactor; … … 2950 2967 2951 2968 return kitLayoutMilestones(page->requestedLayoutMilestones()); 2969 } 2970 2971 - (WebPageVisibilityState)_visibilityState 2972 { 2973 #if ENABLE(PAGE_VISIBILITY_API) || ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) 2974 if (_private->page) 2975 return kit(_private->page->visibilityState()); 2976 #endif 2977 return WebPageVisibilityStateVisible; 2952 2978 } 2953 2979 -
trunk/Source/WebKit/mac/WebView/WebViewPrivate.h
r150695 r152579 585 585 - (WebLayoutMilestones)_layoutMilestones; 586 586 587 - (WebPageVisibilityState)_visibilityState; 587 588 - (void)_setVisibilityState:(WebPageVisibilityState)visibilityState isInitialState:(BOOL)isInitialState; 588 589
Note:
See TracChangeset
for help on using the changeset viewer.