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 NavigatorClipboard_h |
| 6 #define NavigatorClipboard_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "core/frame/Navigator.h" |
| 10 #include "platform/Supplementable.h" |
| 11 #include "platform/heap/Handle.h" |
| 12 #include "platform/wtf/Noncopyable.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class Clipboard; |
| 17 class ScriptState; |
| 18 |
| 19 class NavigatorClipboard final : public GarbageCollected<NavigatorClipboard>, |
| 20 public Supplement<Navigator> { |
| 21 USING_GARBAGE_COLLECTED_MIXIN(NavigatorClipboard); |
| 22 WTF_MAKE_NONCOPYABLE(NavigatorClipboard); |
| 23 |
| 24 public: |
| 25 static Clipboard* clipboard(ScriptState*, Navigator&); |
| 26 |
| 27 DECLARE_TRACE(); |
| 28 |
| 29 private: |
| 30 explicit NavigatorClipboard(Navigator&); |
| 31 static const char* SupplementName(); |
| 32 |
| 33 Member<Clipboard> clipboard_; |
| 34 }; |
| 35 |
| 36 } // namespace blink |
| 37 |
| 38 #endif // NavigatorClipboard.h |
OLD | NEW |