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

Unified Diff: third_party/WebKit/Source/modules/ballista/NavigatorActions.h

Issue 1806253002: Added Web Share (navigator.share) experimental web API (stub). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/modules/ballista/NavigatorActions.h
diff --git a/third_party/WebKit/Source/modules/ballista/NavigatorActions.h b/third_party/WebKit/Source/modules/ballista/NavigatorActions.h
new file mode 100644
index 0000000000000000000000000000000000000000..5509ee68070442f3b214d66268732cd7958eb1a2
--- /dev/null
+++ b/third_party/WebKit/Source/modules/ballista/NavigatorActions.h
@@ -0,0 +1,38 @@
+// Copyright 2016 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 NavigatorActions_h
+#define NavigatorActions_h
+
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class Actions;
+class Navigator;
+
+class NavigatorActions final : public GarbageCollected<NavigatorActions>, public
+ HeapSupplement<Navigator> {
+ USING_GARBAGE_COLLECTED_MIXIN(NavigatorActions);
+public:
+ // Gets, or creates, NavigatorActions supplement on Navigator.
+ // See platform/Supplementable.h
+ static NavigatorActions& from(Navigator&);
+
+ static Actions* actions(Navigator&);
+ Actions* actions();
+
+ DECLARE_TRACE();
+
+private:
+ NavigatorActions();
+ static const char* supplementName();
+
+ Member<Actions> m_actions;
+};
+
+} // namespace blink
+
+#endif // NavigatorActions_h

Powered by Google App Engine
This is Rietveld 408576698