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

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: Fix layout tests for real. 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 GarbageCollectedFinalized<NavigatorIn stalledApp>, public HeapSupplement<Navigator>, public DOMWindowProperty {
22 USING_GARBAGE_COLLECTED_MIXIN(NavigatorInstalledApp);
23 public:
24 static NavigatorInstalledApp* from(Document&);
25 static NavigatorInstalledApp& from(Navigator&);
26
27 static ScriptPromise getInstalledRelatedApps(ScriptState*, Navigator&);
28 ScriptPromise getInstalledRelatedApps(ScriptState*);
29
30 InstalledAppController* controller();
31
32 DECLARE_VIRTUAL_TRACE();
33
34 private:
35 explicit NavigatorInstalledApp(LocalFrame*);
36 static const char* supplementName();
37 };
38
39 } // namespace blink
40
41 #endif // NavigatorInstalledApp_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698