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

Issue 2634713002: Remove PageVisibilityObserver contextDestroyed() notifications. (Closed)

Created:
3 years, 11 months ago by sof
Modified:
3 years, 11 months ago
Reviewers:
haraken
CC:
chromium-reviews, mlamouri+watch-screen-orientation_chromium.org, dshwang, eae+blinkwatch, kinuko+worker_chromium.org, kinuko+watch, rwlbuis, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, Justin Novosad, mlamouri+watch-blink_chromium.org, dglazkov+blink, Rik, blink-reviews, falken+watch_chromium.org, blink-worker-reviews_chromium.org, sof, timvolodine, ajuma+watch-canvas_chromium.org, shimazu+worker_chromium.org, mvanouwerkerk+watch_chromium.org, horo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove PageVisibilityObserver contextDestroyed() notifications. PageVisibilityObserver allows a Page's lifetime states to be observed, but none of the observers need to be notified of Page destruction. Adjust LifecycleNotifier<>::notifyContextDestroyed(), having it call its corresponding LifecycleObserver's contextDestroyed() notification method if the observer implements it, but not require that it does implement contextDestroyed(). With that in place, only have the lifecycle observers that need a contextDestroyed() notification (all but PageVisibilityObserver) declare it. This allows the removal of all the empty PageVisibilityObserver::contextDestroyed() overrides. R=haraken BUG=610176 Review-Url: https://codereview.chromium.org/2634713002 Cr-Commit-Position: refs/heads/master@{#443816} Committed: https://chromium.googlesource.com/chromium/src/+/65dfcc360fbc88445210a0e99aae7af6a8a5ac67

Patch Set 1 #

Patch Set 2 : make contextDestroyed() public #

Patch Set 3 : prefer type aliases #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -35 lines) Patch
M third_party/WebKit/Source/core/dom/ContextLifecycleObserver.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SynchronousMutationObserver.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadLifecycleObserver.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/battery/BatteryManager.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/battery/BatteryManager.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/geolocation/Geolocation.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/geolocation/Geolocation.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/nfc/NFC.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/nfc/NFC.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailability.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vibration/VibrationController.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vibration/VibrationController.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/wake_lock/ScreenWakeLock.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/wake_lock/ScreenWakeLock.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/LifecycleContextTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/LifecycleNotifier.h View 1 2 3 chunks +51 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/LifecycleObserver.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (16 generated)
haraken
LGTM
3 years, 11 months ago (2017-01-15 13:03:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2634713002/40001
3 years, 11 months ago (2017-01-15 15:30:56 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-15 15:35:24 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/65dfcc360fbc88445210a0e99aae...

Powered by Google App Engine
This is Rietveld 408576698