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

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

Issue 1223783002: Remove sky/engine/core/app (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | sky/engine/core/app/AbstractModule.cpp » ('j') | no next file with comments »
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
deleted file mode 100644
index 6b15d9a287fd5e080c86589eaa067ed8c7d3c21e..0000000000000000000000000000000000000000
--- a/sky/engine/core/app/AbstractModule.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// 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_ABSTRACTMODULE_H_
-#define SKY_ENGINE_CORE_APP_ABSTRACTMODULE_H_
-
-#include "sky/engine/core/dom/ContextLifecycleObserver.h"
-#include "sky/engine/core/dom/Document.h"
-#include "sky/engine/core/events/EventTarget.h"
-#include "sky/engine/wtf/RefCounted.h"
-
-namespace blink {
-class Application;
-
-class LibraryEntry {
- public:
- LibraryEntry(PassRefPtr<DartValue> library, TextPosition position)
- : dart_library_(library), text_position_(position) {}
-
- DartValue* library() const { return dart_library_.get(); }
- const TextPosition& position() const { return text_position_; }
-
- private:
- RefPtr<DartValue> dart_library_;
- TextPosition text_position_;
-};
-
-class AbstractModule : public RefCounted<AbstractModule>,
- public EventTargetWithInlineData,
- public ContextLifecycleObserver {
- REFCOUNTED_EVENT_TARGET(AbstractModule);
- public:
- virtual ~AbstractModule();
-
- Document* document() const { return document_.get(); }
- const String& url() const { return url_; }
-
- virtual bool isApplication() const { return false; }
-
- String UrlForLibraryAt(TextPosition);
-
- void AddLibrary(RefPtr<DartValue> library, TextPosition position);
- const Vector<LibraryEntry>& libraries() const { return libraries_; }
-
- protected:
- AbstractModule(ExecutionContext*, PassRefPtr<Document>, const String& url);
-
- virtual Application* GetApplication() = 0;
-
- private:
- ExecutionContext* executionContext() const override;
-
- RefPtr<Document> document_;
- String url_;
- Vector<LibraryEntry> libraries_;
-};
-
-} // namespace blink
-
-#endif // SKY_ENGINE_CORE_APP_ABSTRACTMODULE_H_
« no previous file with comments | « no previous file | sky/engine/core/app/AbstractModule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698