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

Side by Side Diff: third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.h

Issue 1735033004: Bindings and client interface for the IsAppInstalled API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698