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

Side by Side Diff: Source/modules/permissions/PermissionStatus.h

Issue 760223003: Stub implementation of Permissions API module. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix win compile Created 6 years 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
« no previous file with comments | « Source/modules/permissions/OWNERS ('k') | Source/modules/permissions/PermissionStatus.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PermissionStatus_h
6 #define PermissionStatus_h
7
8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "core/events/EventTarget.h"
10 #include "platform/heap/Handle.h"
11 #include "wtf/text/AtomicString.h"
12 #include "wtf/text/WTFString.h"
13
14 namespace blink {
15
16 class ExecutionContext;
17
18 class PermissionStatus final
19 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<Permissio nStatus>
20 , public EventTargetWithInlineData
21 , public ContextLifecycleObserver {
22 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<P ermissionStatus>);
23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PermissionStatus);
24 DEFINE_WRAPPERTYPEINFO();
25 public:
26 static PermissionStatus* create(ExecutionContext*);
27 ~PermissionStatus() override;
28
29 // EventTarget implementation.
30 const AtomicString& interfaceName() const override;
31 ExecutionContext* executionContext() const override;
32
33 void trace(Visitor*) override;
34
35 String status() const;
36
37 DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
38
39 private:
40 explicit PermissionStatus(ExecutionContext*);
41 };
42
43 } // namespace blink
44
45 #endif // PermissionStatus_h
OLDNEW
« no previous file with comments | « Source/modules/permissions/OWNERS ('k') | Source/modules/permissions/PermissionStatus.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698