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 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 void HTMLFrame::didCancelCompositionOnSelectionChange() { | 593 void HTMLFrame::didCancelCompositionOnSelectionChange() { |
594 // TODO(penghuang): Update text input state. | 594 // TODO(penghuang): Update text input state. |
595 } | 595 } |
596 | 596 |
597 void HTMLFrame::didChangeContents() { | 597 void HTMLFrame::didChangeContents() { |
598 // TODO(penghuang): Update text input state. | 598 // TODO(penghuang): Update text input state. |
599 } | 599 } |
600 | 600 |
601 void HTMLFrame::initializeLayerTreeView() { | 601 void HTMLFrame::initializeLayerTreeView() { |
602 mojo::URLRequestPtr request(mojo::URLRequest::New()); | 602 mojo::URLRequestPtr request(mojo::URLRequest::New()); |
603 request->url = mojo::String::From("mojo:surfaces_service"); | 603 request->url = mojo::String::From("mojo:view_manager"); |
604 mojo::SurfacePtr surface; | 604 mojo::SurfacePtr surface; |
605 GetLocalRootApp()->ConnectToService(request.Pass(), &surface); | 605 GetLocalRootApp()->ConnectToService(request.Pass(), &surface); |
606 | 606 |
607 mojo::URLRequestPtr request2(mojo::URLRequest::New()); | 607 mojo::URLRequestPtr request2(mojo::URLRequest::New()); |
608 request2->url = mojo::String::From("mojo:view_manager"); | 608 request2->url = mojo::String::From("mojo:view_manager"); |
609 mojo::GpuPtr gpu_service; | 609 mojo::GpuPtr gpu_service; |
610 GetLocalRootApp()->ConnectToService(request2.Pass(), &gpu_service); | 610 GetLocalRootApp()->ConnectToService(request2.Pass(), &gpu_service); |
611 web_layer_tree_view_impl_.reset(new WebLayerTreeViewImpl( | 611 web_layer_tree_view_impl_.reset(new WebLayerTreeViewImpl( |
612 global_state()->compositor_thread(), | 612 global_state()->compositor_thread(), |
613 global_state()->gpu_memory_buffer_manager(), | 613 global_state()->gpu_memory_buffer_manager(), |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 | 902 |
903 void HTMLFrame::reload(bool ignore_cache, bool is_client_redirect) { | 903 void HTMLFrame::reload(bool ignore_cache, bool is_client_redirect) { |
904 NOTIMPLEMENTED(); | 904 NOTIMPLEMENTED(); |
905 } | 905 } |
906 | 906 |
907 void HTMLFrame::forwardInputEvent(const blink::WebInputEvent* event) { | 907 void HTMLFrame::forwardInputEvent(const blink::WebInputEvent* event) { |
908 NOTIMPLEMENTED(); | 908 NOTIMPLEMENTED(); |
909 } | 909 } |
910 | 910 |
911 } // namespace mojo | 911 } // namespace mojo |
OLD | NEW |