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

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: no copies 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
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"
Peter Beverloo 2014/12/01 11:30:35 IWYU: platform/heap/Handle.h wtf/text/AtomicStrin
mlamouri (slow - plz ping) 2014/12/01 12:36:00 Done.
10
11 namespace blink {
12
13 class PermissionStatus final
14 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<Permissio nStatus>
15 , public EventTargetWithInlineData
16 , public ContextLifecycleObserver {
17 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<P ermissionStatus>);
18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PermissionStatus);
19 DEFINE_WRAPPERTYPEINFO();
20 public:
21 static PermissionStatus* create(ExecutionContext*);
22 virtual ~PermissionStatus();
Peter Beverloo 2014/12/01 11:30:35 ~PermissionStatus() override; At least EventTarge
mlamouri (slow - plz ping) 2014/12/01 12:36:00 Done.
23
24 // EventTarget implementation.
25 const AtomicString& interfaceName() const override;
26 ExecutionContext* executionContext() const override;
27
28 void trace(Visitor*) override;
29
30 String status() const;
31
32 DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
33
34 private:
35 explicit PermissionStatus(ExecutionContext*);
36 };
37
38 } // namespace blink
39
40 #endif // PermissionStatus_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698