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

Unified Diff: sky/engine/core/app/Application.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
Index: sky/engine/core/app/Application.h
diff --git a/sky/engine/core/app/Application.h b/sky/engine/core/app/Application.h
new file mode 100644
index 0000000000000000000000000000000000000000..07c137e48612e0b7af9e27bff1cfe6f2521d8f8b
--- /dev/null
+++ b/sky/engine/core/app/Application.h
@@ -0,0 +1,34 @@
+// 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_APPLICATION_H_
+#define SKY_ENGINE_CORE_APP_APPLICATION_H_
+
+#include "core/app/AbstractModule.h"
+
+namespace blink {
+
+class Application : public AbstractModule {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static PassRefPtr<Application> create(ExecutionContext* context, Document* document, const String& url)
+ {
+ return adoptRef(new Application(context, document, url));
+ }
+
+ virtual ~Application();
+
+ void setTitle(const String& title) { m_title = title; }
eseidel 2014/11/10 22:02:00 So dumb it takes so much typing to write these in
abarth-chromium 2014/11/10 22:14:21 Yes
+ const String& title() { return m_title; }
+
+private:
+ Application(ExecutionContext* context, Document* document, const String& url);
+ const AtomicString& interfaceName() const override;
+
+ String m_title;
+};
+
+} // namespace blink
+
+#endif // SKY_ENGINE_CORE_APP_APPLICATION_H_

Powered by Google App Engine
This is Rietveld 408576698