| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/script/dom_dart_state.h" | 5 #include "sky/engine/core/script/dom_dart_state.h" |
| 7 | 6 |
| 8 #include "sky/engine/core/dom/Document.h" | 7 #include "sky/engine/core/dom/Document.h" |
| 9 #include "sky/engine/core/script/dart_loader.h" | 8 #include "sky/engine/core/script/dart_loader.h" |
| 10 #include "sky/engine/tonic/dart_builtin.h" | 9 #include "sky/engine/tonic/dart_builtin.h" |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 | 12 |
| 14 DOMDartState::DOMDartState(Document* document, const KURL& url) | 13 DOMDartState::DOMDartState(Document* document, const KURL& url) |
| 15 : document_(document), url_(url), loader_(adoptPtr(new DartLoader(this))) { | 14 : document_(document), url_(url), loader_(adoptPtr(new DartLoader(this))) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 44 DCHECK(Current()->document_); | 43 DCHECK(Current()->document_); |
| 45 return Current()->document_->frame(); | 44 return Current()->document_->frame(); |
| 46 } | 45 } |
| 47 | 46 |
| 48 LocalDOMWindow* DOMDartState::CurrentWindow() { | 47 LocalDOMWindow* DOMDartState::CurrentWindow() { |
| 49 DCHECK(Current()->document_); | 48 DCHECK(Current()->document_); |
| 50 return Current()->document_->domWindow(); | 49 return Current()->document_->domWindow(); |
| 51 } | 50 } |
| 52 | 51 |
| 53 } // namespace blink | 52 } // namespace blink |
| OLD | NEW |