OLD | NEW |
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 #include "sky/engine/config.h" | |
6 #include "sky/engine/core/app/Module.h" | 5 #include "sky/engine/core/app/Module.h" |
7 | 6 |
8 #include "gen/sky/core/EventTargetNames.h" | 7 #include "gen/sky/core/EventTargetNames.h" |
9 #include "sky/engine/core/app/Application.h" | 8 #include "sky/engine/core/app/Application.h" |
10 | 9 |
11 namespace blink { | 10 namespace blink { |
12 | 11 |
13 Module::Module(ExecutionContext* context, | 12 Module::Module(ExecutionContext* context, |
14 Application* application, | 13 Application* application, |
15 PassRefPtr<Document> document, | 14 PassRefPtr<Document> document, |
16 const String& url) | 15 const String& url) |
17 : AbstractModule(context, document, url), | 16 : AbstractModule(context, document, url), |
18 application_(application) { | 17 application_(application) { |
19 } | 18 } |
20 | 19 |
21 Module::~Module() { | 20 Module::~Module() { |
22 } | 21 } |
23 | 22 |
24 const AtomicString& Module::interfaceName() const { | 23 const AtomicString& Module::interfaceName() const { |
25 return EventTargetNames::Module; | 24 return EventTargetNames::Module; |
26 } | 25 } |
27 | 26 |
28 Application* Module::GetApplication() { | 27 Application* Module::GetApplication() { |
29 return application(); | 28 return application(); |
30 } | 29 } |
31 | 30 |
32 } // namespace blink | 31 } // namespace blink |
OLD | NEW |