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/viewer/document_view.h" | 5 #include "sky/viewer/document_view.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 const blink::WebString& source_name, | 315 const blink::WebString& source_name, |
316 unsigned source_line, | 316 unsigned source_line, |
317 const blink::WebString& stack_trace) { | 317 const blink::WebString& stack_trace) { |
318 } | 318 } |
319 | 319 |
320 void DocumentView::didCreateIsolate(blink::WebLocalFrame* frame, | 320 void DocumentView::didCreateIsolate(blink::WebLocalFrame* frame, |
321 Dart_Isolate isolate) { | 321 Dart_Isolate isolate) { |
322 Internals::Create(isolate, this); | 322 Internals::Create(isolate, this); |
323 } | 323 } |
324 | 324 |
| 325 void DocumentView::DidCreateIsolate(Dart_Isolate isolate) { |
| 326 Internals::Create(isolate, this); |
| 327 } |
| 328 |
325 blink::ServiceProvider* DocumentView::services() { | 329 blink::ServiceProvider* DocumentView::services() { |
326 return this; | 330 return this; |
327 } | 331 } |
328 | 332 |
329 mojo::NavigatorHost* DocumentView::NavigatorHost() { | 333 mojo::NavigatorHost* DocumentView::NavigatorHost() { |
330 return navigator_host_.get(); | 334 return navigator_host_.get(); |
331 } | 335 } |
332 | 336 |
333 void DocumentView::OnViewBoundsChanged(mojo::View* view, | 337 void DocumentView::OnViewBoundsChanged(mojo::View* view, |
334 const mojo::Rect& old_bounds, | 338 const mojo::Rect& old_bounds, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 new mojo::StrongBinding<mojo::ServiceProvider>(sp_impl, &sp)); | 437 new mojo::StrongBinding<mojo::ServiceProvider>(sp_impl, &sp)); |
434 service_registry_->AddServices(interface_names.Pass(), sp.Pass()); | 438 service_registry_->AddServices(interface_names.Pass(), sp.Pass()); |
435 } | 439 } |
436 | 440 |
437 void DocumentView::ScheduleFrame() { | 441 void DocumentView::ScheduleFrame() { |
438 DCHECK(sky_view_); | 442 DCHECK(sky_view_); |
439 layer_host_->SetNeedsAnimate(); | 443 layer_host_->SetNeedsAnimate(); |
440 } | 444 } |
441 | 445 |
442 } // namespace sky | 446 } // namespace sky |
OLD | NEW |