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

Unified Diff: sky/engine/core/app/AbstractModule.h

Issue 697873007: Add Module and Application interfaces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | sky/engine/core/app/AbstractModule.cpp » ('j') | sky/engine/core/app/Application.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/app/AbstractModule.h
diff --git a/sky/engine/core/app/AbstractModule.h b/sky/engine/core/app/AbstractModule.h
new file mode 100644
index 0000000000000000000000000000000000000000..6405354eb9d4db87b236123fd2ed813b1275895c
--- /dev/null
+++ b/sky/engine/core/app/AbstractModule.h
@@ -0,0 +1,38 @@
+// Copyright 2014 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 SKY_ENGINE_CORE_APP_ABSTRACT_MODULE_H_
+#define SKY_ENGINE_CORE_APP_ABSTRACT_MODULE_H_
+
+#include "core/dom/ContextLifecycleObserver.h"
+#include "core/dom/Document.h"
+#include "core/events/EventTarget.h"
+#include "wtf/RefCounted.h"
+
+namespace blink {
+
+class AbstractModule : public RefCounted<AbstractModule>
+ , public EventTargetWithInlineData
+ , public ContextLifecycleObserver {
+ DEFINE_WRAPPERTYPEINFO();
+ REFCOUNTED_EVENT_TARGET(AbstractModule);
+public:
+ virtual ~AbstractModule();
+
+ Document* document() const { return m_document.get(); }
+ const String& url() const { return m_url; }
+
+protected:
+ AbstractModule(ExecutionContext*, Document*, const String& url);
+
+private:
+ ExecutionContext* executionContext() const override;
+
+ RefPtr<Document> m_document;
eseidel 2014/11/10 21:46:45 document_
abarth-chromium 2014/11/10 22:14:21 Done
+ String m_url;
+};
+
+} // namespace blink
+
+#endif // SKY_ENGINE_CORE_APP_ABSTRACT_MODULE_H_
« no previous file with comments | « no previous file | sky/engine/core/app/AbstractModule.cpp » ('j') | sky/engine/core/app/Application.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698