OLD | NEW |
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 Loading... |
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 |
OLD | NEW |