| 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" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
| 13 #include "mojo/converters/geometry/geometry_type_converters.h" | 13 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 14 #include "mojo/public/cpp/application/connect.h" | 14 #include "mojo/public/cpp/application/connect.h" |
| 15 #include "mojo/public/cpp/system/data_pipe.h" | 15 #include "mojo/public/cpp/system/data_pipe.h" |
| 16 #include "mojo/public/interfaces/application/shell.mojom.h" | 16 #include "mojo/public/interfaces/application/shell.mojom.h" |
| 17 #include "mojo/services/surfaces/public/interfaces/surfaces_service.mojom.h" | 17 #include "mojo/services/surfaces/public/interfaces/surfaces_service.mojom.h" |
| 18 #include "mojo/services/view_manager/public/cpp/view.h" | 18 #include "mojo/services/view_manager/public/cpp/view.h" |
| 19 #include "mojo/services/view_manager/public/cpp/view_manager.h" | 19 #include "mojo/services/view_manager/public/cpp/view_manager.h" |
| 20 #include "skia/ext/refptr.h" | 20 #include "skia/ext/refptr.h" |
| 21 #include "sky/compositor/layer.h" | 21 #include "sky/compositor/layer.h" |
| 22 #include "sky/compositor/layer_host.h" | 22 #include "sky/compositor/layer_host.h" |
| 23 #include "sky/engine/public/platform/Platform.h" | 23 #include "sky/engine/public/platform/Platform.h" |
| 24 #include "sky/engine/public/platform/WebHTTPHeaderVisitor.h" | 24 #include "sky/engine/public/platform/WebHTTPHeaderVisitor.h" |
| 25 #include "sky/engine/public/platform/WebInputEvent.h" |
| 25 #include "sky/engine/public/platform/WebScreenInfo.h" | 26 #include "sky/engine/public/platform/WebScreenInfo.h" |
| 26 #include "sky/engine/public/web/Sky.h" | 27 #include "sky/engine/public/web/Sky.h" |
| 27 #include "sky/engine/public/web/WebConsoleMessage.h" | 28 #include "sky/engine/public/web/WebConsoleMessage.h" |
| 28 #include "sky/engine/public/web/WebDocument.h" | 29 #include "sky/engine/public/web/WebDocument.h" |
| 29 #include "sky/engine/public/web/WebElement.h" | 30 #include "sky/engine/public/web/WebElement.h" |
| 30 #include "sky/engine/public/web/WebInputEvent.h" | |
| 31 #include "sky/engine/public/web/WebLocalFrame.h" | 31 #include "sky/engine/public/web/WebLocalFrame.h" |
| 32 #include "sky/engine/public/web/WebScriptSource.h" | 32 #include "sky/engine/public/web/WebScriptSource.h" |
| 33 #include "sky/engine/public/web/WebSettings.h" | 33 #include "sky/engine/public/web/WebSettings.h" |
| 34 #include "sky/engine/public/web/WebView.h" | 34 #include "sky/engine/public/web/WebView.h" |
| 35 #include "sky/engine/v8_inspector/inspector_backend_mojo.h" | 35 #include "sky/engine/v8_inspector/inspector_backend_mojo.h" |
| 36 #include "sky/engine/v8_inspector/inspector_host.h" | 36 #include "sky/engine/v8_inspector/inspector_host.h" |
| 37 #include "sky/viewer/converters/input_event_types.h" | 37 #include "sky/viewer/converters/input_event_types.h" |
| 38 #include "sky/viewer/converters/url_request_types.h" | 38 #include "sky/viewer/converters/url_request_types.h" |
| 39 #include "sky/viewer/internals.h" | 39 #include "sky/viewer/internals.h" |
| 40 #include "sky/viewer/platform/weburlloader_impl.h" | 40 #include "sky/viewer/platform/weburlloader_impl.h" |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 void DocumentView::StartDebuggerInspectorBackend() { | 301 void DocumentView::StartDebuggerInspectorBackend() { |
| 302 if (!inspector_backend_) { | 302 if (!inspector_backend_) { |
| 303 inspector_host_.reset(new InspectorHostImpl(web_view_, shell_)); | 303 inspector_host_.reset(new InspectorHostImpl(web_view_, shell_)); |
| 304 inspector_backend_.reset( | 304 inspector_backend_.reset( |
| 305 new inspector::InspectorBackendMojo(inspector_host_.get())); | 305 new inspector::InspectorBackendMojo(inspector_host_.get())); |
| 306 } | 306 } |
| 307 inspector_backend_->Connect(); | 307 inspector_backend_->Connect(); |
| 308 } | 308 } |
| 309 | 309 |
| 310 } // namespace sky | 310 } // namespace sky |
| OLD | NEW |