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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorkerWindowClient.h

Issue 831483003: [ServiceWorker] Use pageVisibilityState instead of visibilityState. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@page_visibility_state
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ServiceWorkerWindowClient_h 5 #ifndef ServiceWorkerWindowClient_h
6 #define ServiceWorkerWindowClient_h 6 #define ServiceWorkerWindowClient_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "modules/serviceworkers/ServiceWorkerClient.h" 9 #include "modules/serviceworkers/ServiceWorkerClient.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 13 matching lines...) Expand all
24 String visibilityState() const; 24 String visibilityState() const;
25 bool focused() const { return m_isFocused; } 25 bool focused() const { return m_isFocused; }
26 String frameType() const; 26 String frameType() const;
27 ScriptPromise focus(ScriptState*); 27 ScriptPromise focus(ScriptState*);
28 28
29 virtual void trace(Visitor*) override; 29 virtual void trace(Visitor*) override;
30 30
31 private: 31 private:
32 explicit ServiceWorkerWindowClient(const WebServiceWorkerClientInfo&); 32 explicit ServiceWorkerWindowClient(const WebServiceWorkerClientInfo&);
33 33
34 // FIXME: remove m_visibilityState when m_pageVisibilityState will be used
35 // by Chromium.
36 String m_visibilityState;
37 WebPageVisibilityState m_pageVisibilityState; 34 WebPageVisibilityState m_pageVisibilityState;
38 bool m_isFocused; 35 bool m_isFocused;
39 WebURLRequest::FrameType m_frameType; 36 WebURLRequest::FrameType m_frameType;
40 }; 37 };
41 38
42 } // namespace blink 39 } // namespace blink
43 40
44 #endif // ServiceWorkerWindowClient_h 41 #endif // ServiceWorkerWindowClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698