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 "components/html_viewer/html_frame.h" | 5 #include "components/html_viewer/html_frame.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 frame_tree_manager_->ProcessOnFrameRemoved(this, frame_id); | 471 frame_tree_manager_->ProcessOnFrameRemoved(this, frame_id); |
472 } | 472 } |
473 | 473 |
474 void HTMLFrame::OnFrameNameChanged(uint32_t frame_id, | 474 void HTMLFrame::OnFrameNameChanged(uint32_t frame_id, |
475 const mojo::String& name) { | 475 const mojo::String& name) { |
476 frame_tree_manager_->ProcessOnFrameNameChanged(this, frame_id, name); | 476 frame_tree_manager_->ProcessOnFrameNameChanged(this, frame_id, name); |
477 } | 477 } |
478 | 478 |
479 void HTMLFrame::initializeLayerTreeView() { | 479 void HTMLFrame::initializeLayerTreeView() { |
480 mojo::URLRequestPtr request(mojo::URLRequest::New()); | 480 mojo::URLRequestPtr request(mojo::URLRequest::New()); |
481 request->url = mojo::String::From("mojo:surfaces_service"); | 481 request->url = mojo::String::From("mojo:view_manager"); |
482 mojo::SurfacePtr surface; | 482 mojo::SurfacePtr surface; |
483 GetLocalRootApp()->ConnectToService(request.Pass(), &surface); | 483 GetLocalRootApp()->ConnectToService(request.Pass(), &surface); |
484 | 484 |
485 // TODO(jamesr): Should be mojo:gpu_service | 485 // TODO(jamesr): Should be mojo:gpu_service |
486 mojo::URLRequestPtr request2(mojo::URLRequest::New()); | 486 mojo::URLRequestPtr request2(mojo::URLRequest::New()); |
487 request2->url = mojo::String::From("mojo:view_manager"); | 487 request2->url = mojo::String::From("mojo:view_manager"); |
488 mojo::GpuPtr gpu_service; | 488 mojo::GpuPtr gpu_service; |
489 GetLocalRootApp()->ConnectToService(request2.Pass(), &gpu_service); | 489 GetLocalRootApp()->ConnectToService(request2.Pass(), &gpu_service); |
490 web_layer_tree_view_impl_.reset(new WebLayerTreeViewImpl( | 490 web_layer_tree_view_impl_.reset(new WebLayerTreeViewImpl( |
491 global_state()->compositor_thread(), | 491 global_state()->compositor_thread(), |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 | 671 |
672 void HTMLFrame::reload(bool ignore_cache, bool is_client_redirect) { | 672 void HTMLFrame::reload(bool ignore_cache, bool is_client_redirect) { |
673 NOTIMPLEMENTED(); | 673 NOTIMPLEMENTED(); |
674 } | 674 } |
675 | 675 |
676 void HTMLFrame::forwardInputEvent(const blink::WebInputEvent* event) { | 676 void HTMLFrame::forwardInputEvent(const blink::WebInputEvent* event) { |
677 NOTIMPLEMENTED(); | 677 NOTIMPLEMENTED(); |
678 } | 678 } |
679 | 679 |
680 } // namespace mojo | 680 } // namespace mojo |
OLD | NEW |