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

Side by Side Diff: sky/engine/core/app/Module.h

Issue 720903002: Script-based imports should basically work (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Use String::format 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/app/Application.cpp ('k') | sky/engine/core/app/Module.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKY_ENGINE_CORE_APP_MODULE_H_ 5 #ifndef SKY_ENGINE_CORE_APP_MODULE_H_
6 #define SKY_ENGINE_CORE_APP_MODULE_H_ 6 #define SKY_ENGINE_CORE_APP_MODULE_H_
7 7
8 #include "core/app/AbstractModule.h" 8 #include "core/app/AbstractModule.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 16 matching lines...) Expand all
27 void setExports(const ScriptValue& exports) { exports_ = exports; } 27 void setExports(const ScriptValue& exports) { exports_ = exports; }
28 const ScriptValue& exports() const { return exports_; } 28 const ScriptValue& exports() const { return exports_; }
29 29
30 private: 30 private:
31 Module(ExecutionContext* context, 31 Module(ExecutionContext* context,
32 Application* application, 32 Application* application,
33 PassRefPtr<Document> document, 33 PassRefPtr<Document> document,
34 const String& url); 34 const String& url);
35 const AtomicString& interfaceName() const override; 35 const AtomicString& interfaceName() const override;
36 36
37 Application* GetApplication() override;
38
37 RefPtr<Application> application_; 39 RefPtr<Application> application_;
38 ScriptValue exports_; 40 ScriptValue exports_;
39 }; 41 };
40 42
41 } // namespace blink 43 } // namespace blink
42 44
43 #endif // SKY_ENGINE_CORE_APP_MODULE_H_ 45 #endif // SKY_ENGINE_CORE_APP_MODULE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/app/Application.cpp ('k') | sky/engine/core/app/Module.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698