Rename DisplaySleepDisabler -> SleepDisabler
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 May 2017 16:39:57 +0000 (16:39 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 May 2017 16:39:57 +0000 (16:39 +0000)
commit5d0997943f157a1bb8c8bf0bc60f651f8fe440f0
tree2518b49955ec53ef886f5eb9f5799156e7c7634f
parenta9933b404d0c14356aeb4429761ba3b968abc217
Rename DisplaySleepDisabler -> SleepDisabler
https://bugs.webkit.org/show_bug.cgi?id=172478

Reviewed by Sam Weinig.

Source/WebCore:

Rename DisplaySleepDisabler to SleepDisabler so that different (i.e., non-Display) sleep types can be
added in a future change.

* WebCore.xcodeproj/project.pbxproj:
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::updateSleepDisabling):
* html/HTMLMediaElement.h:
* platform/SleepDisabler.cpp: Renamed from Source/WebCore/platform/DisplaySleepDisabler.cpp.
(WebCore::SleepDisabler::create):
(WebCore::SleepDisabler::SleepDisabler):
(WebCore::SleepDisabler::~SleepDisabler):
* platform/SleepDisabler.h: Renamed from Source/WebCore/platform/DisplaySleepDisabler.h.
* platform/cocoa/SleepDisablerCocoa.cpp: Renamed from Source/WebCore/platform/cocoa/DisplaySleepDisablerCocoa.cpp.
(WebCore::SleepDisabler::create):
(WebCore::SleepDisablerCocoa::SleepDisablerCocoa):
(WebCore::SleepDisablerCocoa::~SleepDisablerCocoa):
* platform/cocoa/SleepDisablerCocoa.h: Renamed from Source/WebCore/platform/cocoa/DisplaySleepDisablerCocoa.h.
* platform/mac/WebVideoFullscreenController.h:
* platform/mac/WebVideoFullscreenController.mm:
(-[WebVideoFullscreenController updatePowerAssertions]):
* CMakeLists.txt:
* PlatformMac.cmake:
* WebCore.order:

Source/WebKit/mac:

* WebView/WebFullScreenController.h:

Source/WebKit2:

* UIProcess/mac/WKFullScreenWindowController.h:
* UIProcess/mac/WKFullScreenWindowController.mm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/PlatformMac.cmake
Source/WebCore/WebCore.order
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/html/HTMLMediaElement.h
Source/WebCore/platform/SleepDisabler.cpp [moved from Source/WebCore/platform/DisplaySleepDisabler.cpp with 82% similarity]
Source/WebCore/platform/SleepDisabler.h [moved from Source/WebCore/platform/DisplaySleepDisabler.h with 83% similarity]
Source/WebCore/platform/cocoa/SleepDisablerCocoa.cpp [moved from Source/WebCore/platform/cocoa/DisplaySleepDisablerCocoa.cpp with 83% similarity]
Source/WebCore/platform/cocoa/SleepDisablerCocoa.h [moved from Source/WebCore/platform/cocoa/DisplaySleepDisablerCocoa.h with 83% similarity]
Source/WebCore/platform/mac/WebVideoFullscreenController.h
Source/WebCore/platform/mac/WebVideoFullscreenController.mm
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebFullScreenController.h
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.h
Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm