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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 void HTMLFrame::didCancelCompositionOnSelectionChange() { | 581 void HTMLFrame::didCancelCompositionOnSelectionChange() { |
582 // TODO(penghuang): Update text input state. | 582 // TODO(penghuang): Update text input state. |
583 } | 583 } |
584 | 584 |
585 void HTMLFrame::didChangeContents() { | 585 void HTMLFrame::didChangeContents() { |
586 // TODO(penghuang): Update text input state. | 586 // TODO(penghuang): Update text input state. |
587 } | 587 } |
588 | 588 |
589 void HTMLFrame::initializeLayerTreeView() { | 589 void HTMLFrame::initializeLayerTreeView() { |
590 mojo::URLRequestPtr request(mojo::URLRequest::New()); | 590 mojo::URLRequestPtr request(mojo::URLRequest::New()); |
591 request->url = mojo::String::From("mojo:surfaces_service"); | 591 request->url = mojo::String::From("mojo:view_manager"); |
592 mojo::SurfacePtr surface; | 592 mojo::SurfacePtr surface; |
593 GetLocalRootApp()->ConnectToService(request.Pass(), &surface); | 593 GetLocalRootApp()->ConnectToService(request.Pass(), &surface); |
594 | 594 |
595 mojo::URLRequestPtr request2(mojo::URLRequest::New()); | 595 mojo::URLRequestPtr request2(mojo::URLRequest::New()); |
596 request2->url = mojo::String::From("mojo:view_manager"); | 596 request2->url = mojo::String::From("mojo:view_manager"); |
597 mojo::GpuPtr gpu_service; | 597 mojo::GpuPtr gpu_service; |
598 GetLocalRootApp()->ConnectToService(request2.Pass(), &gpu_service); | 598 GetLocalRootApp()->ConnectToService(request2.Pass(), &gpu_service); |
599 web_layer_tree_view_impl_.reset(new WebLayerTreeViewImpl( | 599 web_layer_tree_view_impl_.reset(new WebLayerTreeViewImpl( |
600 global_state()->compositor_thread(), | 600 global_state()->compositor_thread(), |
601 global_state()->gpu_memory_buffer_manager(), | 601 global_state()->gpu_memory_buffer_manager(), |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 | 860 |
861 void HTMLFrame::reload(bool ignore_cache, bool is_client_redirect) { | 861 void HTMLFrame::reload(bool ignore_cache, bool is_client_redirect) { |
862 NOTIMPLEMENTED(); | 862 NOTIMPLEMENTED(); |
863 } | 863 } |
864 | 864 |
865 void HTMLFrame::forwardInputEvent(const blink::WebInputEvent* event) { | 865 void HTMLFrame::forwardInputEvent(const blink::WebInputEvent* event) { |
866 NOTIMPLEMENTED(); | 866 NOTIMPLEMENTED(); |
867 } | 867 } |
868 | 868 |
869 } // namespace mojo | 869 } // namespace mojo |
OLD | NEW |