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

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

Issue 790623003: Restructure public side of view_manager service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: BUILD.gn file reorderings Created 6 years 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
« no previous file with comments | « sky/viewer/document_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
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/public/cpp/view_manager/view.h"
18 #include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h" 17 #include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h"
18 #include "mojo/services/view_manager/public/cpp/view.h"
19 #include "skia/ext/refptr.h" 19 #include "skia/ext/refptr.h"
20 #include "sky/compositor/layer.h" 20 #include "sky/compositor/layer.h"
21 #include "sky/compositor/layer_host.h" 21 #include "sky/compositor/layer_host.h"
22 #include "sky/engine/public/platform/Platform.h" 22 #include "sky/engine/public/platform/Platform.h"
23 #include "sky/engine/public/platform/WebHTTPHeaderVisitor.h" 23 #include "sky/engine/public/platform/WebHTTPHeaderVisitor.h"
24 #include "sky/engine/public/web/Sky.h" 24 #include "sky/engine/public/web/Sky.h"
25 #include "sky/engine/public/web/WebConsoleMessage.h" 25 #include "sky/engine/public/web/WebConsoleMessage.h"
26 #include "sky/engine/public/web/WebDocument.h" 26 #include "sky/engine/public/web/WebDocument.h"
27 #include "sky/engine/public/web/WebElement.h" 27 #include "sky/engine/public/web/WebElement.h"
28 #include "sky/engine/public/web/WebInputEvent.h" 28 #include "sky/engine/public/web/WebInputEvent.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void DocumentView::StartDebuggerInspectorBackend() { 273 void DocumentView::StartDebuggerInspectorBackend() {
274 if (!inspector_backend_) { 274 if (!inspector_backend_) {
275 inspector_host_.reset(new InspectorHostImpl(web_view_, shell_)); 275 inspector_host_.reset(new InspectorHostImpl(web_view_, shell_));
276 inspector_backend_.reset( 276 inspector_backend_.reset(
277 new inspector::InspectorBackendMojo(inspector_host_.get())); 277 new inspector::InspectorBackendMojo(inspector_host_.get()));
278 } 278 }
279 inspector_backend_->Connect(); 279 inspector_backend_->Connect();
280 } 280 }
281 281
282 } // namespace sky 282 } // namespace sky
OLDNEW
« no previous file with comments | « sky/viewer/document_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698