OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 Clipboard_h | |
6 #define Clipboard_h | |
7 | |
8 #include "bindings/core/v8/ScriptPromise.h" | |
9 #include "core/dom/ContextLifecycleObserver.h" | |
10 #include "core/events/EventTarget.h" | |
11 #include "platform/wtf/Noncopyable.h" | |
12 | |
13 namespace blink { | |
14 | |
15 class DataTransfer; | |
16 class ScriptState; | |
17 | |
18 class Clipboard : public EventTargetWithInlineData, | |
19 public ContextLifecycleObserver { | |
20 USING_GARBAGE_COLLECTED_MIXIN(Clipboard); | |
21 DEFINE_WRAPPERTYPEINFO(); | |
22 WTF_MAKE_NONCOPYABLE(Clipboard); | |
23 | |
24 public: | |
25 explicit Clipboard(ExecutionContext*); | |
26 | |
27 ScriptPromise read(ScriptState*); | |
28 ScriptPromise readText(ScriptState*); | |
29 | |
30 ScriptPromise write(ScriptState*, DataTransfer*); | |
31 ScriptPromise writeText(ScriptState*, const String&); | |
32 | |
33 // EventTarget | |
34 const AtomicString& InterfaceName() const override; | |
35 // ContextLifecycleObserver | |
dcheng
2017/06/06 23:33:38
Nit: remove this comment, the requirement to overr
garykac
2017/06/09 20:38:59
Done.
| |
36 ExecutionContext* GetExecutionContext() const override; | |
37 | |
38 DECLARE_VIRTUAL_TRACE(); | |
39 }; | |
40 | |
41 } // namespace blink | |
42 | |
43 #endif // Clipboard_h | |
OLD | NEW |