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

Unified Diff: third_party/WebKit/Source/modules/extensions/WindowChrome.h

Issue 2074263002: [Experimental] Fool around with exposing extension bindings via blink Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/extensions/WindowChrome.h
diff --git a/third_party/WebKit/Source/modules/extensions/WindowChrome.h b/third_party/WebKit/Source/modules/extensions/WindowChrome.h
new file mode 100644
index 0000000000000000000000000000000000000000..28e5e9603ee9505072df6ed587659a8ce85ac16b
--- /dev/null
+++ b/third_party/WebKit/Source/modules/extensions/WindowChrome.h
@@ -0,0 +1,41 @@
+// 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 WindowChrome_h
+#define WindowChrome_h
+
+#include "core/frame/DOMWindowProperty.h"
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class Chrome;
+class DOMWindow;
+class ExecutionContext;
+class LocalDOMWindow;
+
+class WindowChrome final
+ : public GarbageCollected<WindowChrome>
+ , public Supplement<LocalDOMWindow>
+ , public DOMWindowProperty {
+ USING_GARBAGE_COLLECTED_MIXIN(WindowChrome);
+
+public:
+ static WindowChrome& from(LocalDOMWindow&);
+ static Chrome* chromex(DOMWindow&);
+ Chrome* chromex() const;
+
+ DECLARE_TRACE();
+
+private:
+ explicit WindowChrome(LocalDOMWindow&);
+ static const char* supplementName();
+
+ mutable Member<Chrome> m_chrome;
+};
+
+} // namespace blink
+
+#endif // WindowChrome_h

Powered by Google App Engine
This is Rietveld 408576698