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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerWindowClient.h

Issue 844733003: Use VisibilityState enum and move WebPageVisibilityState to public/platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_enum_stuff
Patch Set: SWContainer uses pageVisibilityState Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/serviceworkers/ServiceWorkerWindowClient.h
diff --git a/Source/modules/serviceworkers/ServiceWorkerWindowClient.h b/Source/modules/serviceworkers/ServiceWorkerWindowClient.h
index 89f892b895ebc010922e434d02d8a8da9683a5ad..85bc114629fb408f3b7b83df454f76416b2078c3 100644
--- a/Source/modules/serviceworkers/ServiceWorkerWindowClient.h
+++ b/Source/modules/serviceworkers/ServiceWorkerWindowClient.h
@@ -21,7 +21,7 @@ public:
~ServiceWorkerWindowClient() override;
// WindowClient.idl
- String visibilityState() const { return m_visibilityState; }
+ String visibilityState() const;
bool focused() const { return m_isFocused; }
String frameType() const;
ScriptPromise focus(ScriptState*);
@@ -31,7 +31,10 @@ public:
private:
explicit ServiceWorkerWindowClient(const WebServiceWorkerClientInfo&);
+ // FIXME: remove m_visibilityState when m_pageVisibilityState will be used
+ // by Chromium.
String m_visibilityState;
+ WebPageVisibilityState m_pageVisibilityState;
bool m_isFocused;
WebURLRequest::FrameType m_frameType;
};
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.cpp ('k') | Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698