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

Unified Diff: third_party/WebKit/Source/core/frame/NavigatorClipboard.h

Issue 2695593006: Initial stub version of Async Clipboard API (Closed)
Patch Set: Expected layout tests results for mac Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/NavigatorClipboard.h
diff --git a/third_party/WebKit/Source/core/frame/NavigatorClipboard.h b/third_party/WebKit/Source/core/frame/NavigatorClipboard.h
new file mode 100644
index 0000000000000000000000000000000000000000..1d17ab46669448e4bdbaf8d9bffd0cb7d18c90bb
--- /dev/null
+++ b/third_party/WebKit/Source/core/frame/NavigatorClipboard.h
@@ -0,0 +1,38 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NavigatorClipboard_h
+#define NavigatorClipboard_h
+
+#include "core/CoreExport.h"
+#include "core/frame/Navigator.h"
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
+#include "platform/wtf/Noncopyable.h"
+
+namespace blink {
+
+class Clipboard;
+class ScriptState;
+
+class NavigatorClipboard final : public GarbageCollected<NavigatorClipboard>,
+ public Supplement<Navigator> {
+ USING_GARBAGE_COLLECTED_MIXIN(NavigatorClipboard);
+ WTF_MAKE_NONCOPYABLE(NavigatorClipboard);
+
+ public:
+ static Clipboard* clipboard(ScriptState*, Navigator&);
+
+ DECLARE_TRACE();
+
+ private:
+ explicit NavigatorClipboard(Navigator&);
+ static const char* SupplementName();
+
+ Member<Clipboard> clipboard_;
+};
+
+} // namespace blink
+
+#endif // NavigatorClipboard.h
« no previous file with comments | « third_party/WebKit/Source/core/frame/BUILD.gn ('k') | third_party/WebKit/Source/core/frame/NavigatorClipboard.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698