OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NavigatorInstalledApp_h |
| 6 #define NavigatorInstalledApp_h |
| 7 |
| 8 #include "core/frame/DOMWindowProperty.h" |
| 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 #include "wtf/text/WTFString.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class Document; |
| 16 class Navigator; |
| 17 class ScriptPromise; |
| 18 class ScriptState; |
| 19 class InstalledAppController; |
| 20 |
| 21 class NavigatorInstalledApp final : public GarbageCollected<NavigatorInstalledAp
p>, public HeapSupplement<Navigator>, DOMWindowProperty { |
| 22 USING_GARBAGE_COLLECTED_MIXIN(NavigatorInstalledApp); |
| 23 |
| 24 public: |
| 25 static NavigatorInstalledApp* from(Document&); |
| 26 static NavigatorInstalledApp& from(Navigator&); |
| 27 |
| 28 static ScriptPromise getInstalledRelatedApps(ScriptState*, Navigator&); |
| 29 ScriptPromise getInstalledRelatedApps(ScriptState*); |
| 30 |
| 31 InstalledAppController* controller(); |
| 32 |
| 33 DECLARE_VIRTUAL_TRACE(); |
| 34 |
| 35 private: |
| 36 explicit NavigatorInstalledApp(LocalFrame*); |
| 37 static const char* supplementName(); |
| 38 }; |
| 39 |
| 40 } // namespace blink |
| 41 |
| 42 #endif // NavigatorInstalledApp_h |
OLD | NEW |