|
Extract a minimal set of classes for observing the lifecycle of a context.
From ContextLifecycleObserver extract LifecycleObserver. From ContextLifecycleNotifier extract
LifecycleNotifier. From ScriptExecutionContext extract LifecycleContext.
Use these minimal classes to observe Page. In this case it is used to observe page visibility in the
Vibration API. When the page is no longer visible all running vibrations must be cancelled.
BUG= 222504
R=abarth@chromium.org, loislo@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154401
Total comments: 4
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+109 lines, -116 lines) |
Patch |
|
M |
Source/core/core.gypi
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleNotifier.h
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+4 lines, -17 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleNotifier.cpp
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+14 lines, -22 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleObserver.h
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleObserver.cpp
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/DocumentLifecycleObserver.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/DocumentLifecycleObserver.cpp
|
View
|
1
2
3
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ScriptExecutionContext.h
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ScriptExecutionContext.cpp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -14 lines |
0 comments
|
Download
|
|
M |
Source/core/page/Page.h
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/page/Page.cpp
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/vibration/NavigatorVibration.h
|
View
|
1
2
3
4
5
|
1 chunk |
+13 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/modules/vibration/NavigatorVibration.cpp
|
View
|
1
2
3
4
5
6
|
5 chunks |
+19 lines, -26 lines |
0 comments
|
Download
|
Total messages: 24 (0 generated)
|