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

Unified Diff: public/platform/WebServiceWorkerClientsInfo.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
« no previous file with comments | « public/platform/WebPageVisibilityState.h ('k') | public/web/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerClientsInfo.h
diff --git a/public/platform/WebServiceWorkerClientsInfo.h b/public/platform/WebServiceWorkerClientsInfo.h
index 491a8440787d1f648682c3d811afe7c79d32dba0..c6b4ee912d63a965ef075758623a57425922b100 100644
--- a/public/platform/WebServiceWorkerClientsInfo.h
+++ b/public/platform/WebServiceWorkerClientsInfo.h
@@ -6,6 +6,7 @@
#define WebServiceWorkerClientsInfo_h
#include "public/platform/WebCallbacks.h"
+#include "public/platform/WebPageVisibilityState.h"
#include "public/platform/WebURL.h"
#include "public/platform/WebURLRequest.h"
#include "public/platform/WebVector.h"
@@ -17,15 +18,16 @@ struct WebServiceWorkerError;
struct WebServiceWorkerClientInfo {
WebServiceWorkerClientInfo()
: clientID(0)
+ , pageVisibilityState(WebPageVisibilityStateLast)
, isFocused(false)
, frameType(WebURLRequest::FrameTypeNone)
{
}
int clientID;
- // FIXME: Use WebPageVisibilityState? That will require moving
- // WebPageVisibilityState from public/web to public/platform.
+ // FIXME: remove when the Chromium code will be updated.
WebString visibilityState;
+ WebPageVisibilityState pageVisibilityState;
bool isFocused;
WebURL url;
WebURLRequest::FrameType frameType;
« no previous file with comments | « public/platform/WebPageVisibilityState.h ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698