| 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/AbstractModule.h" | 5 #include "sky/engine/core/app/AbstractModule.h" |
| 7 | 6 |
| 8 #include "sky/engine/core/app/Module.h" | 7 #include "sky/engine/core/app/Module.h" |
| 9 | 8 |
| 10 namespace blink { | 9 namespace blink { |
| 11 | 10 |
| 12 AbstractModule::AbstractModule(ExecutionContext* context, | 11 AbstractModule::AbstractModule(ExecutionContext* context, |
| 13 PassRefPtr<Document> document, | 12 PassRefPtr<Document> document, |
| 14 const String& url) | 13 const String& url) |
| 15 : ContextLifecycleObserver(context), | 14 : ContextLifecycleObserver(context), |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 int line = position.m_line.zeroBasedInt(); | 33 int line = position.m_line.zeroBasedInt(); |
| 35 int column = position.m_column.zeroBasedInt(); | 34 int column = position.m_column.zeroBasedInt(); |
| 36 return url() + String::format("#l%d,c%d", line, column); | 35 return url() + String::format("#l%d,c%d", line, column); |
| 37 } | 36 } |
| 38 | 37 |
| 39 ExecutionContext* AbstractModule::executionContext() const { | 38 ExecutionContext* AbstractModule::executionContext() const { |
| 40 return ContextLifecycleObserver::executionContext(); | 39 return ContextLifecycleObserver::executionContext(); |
| 41 } | 40 } |
| 42 | 41 |
| 43 } // namespace blink | 42 } // namespace blink |
| OLD | NEW |