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

Side by Side Diff: sky/viewer/document_view.cc

Issue 1156203003: Fix dart:sky.internals to work in SkyView (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months 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
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 #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
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
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
OLDNEW
« sky/engine/public/sky/sky_view.cc ('K') | « sky/viewer/document_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698