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

Side by Side Diff: sky/viewer/services/inspector_impl.cc

Issue 690433004: Add inspect command to skydb (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "sky/viewer/services/inspector_impl.h"
6
7 #include "sky/engine/public/web/WebDocument.h"
8 #include "sky/engine/public/web/WebElement.h"
9 #include "sky/engine/public/web/WebFrame.h"
10 #include "sky/engine/public/web/WebView.h"
11 #include "sky/viewer/document_view.h"
12
13 namespace sky {
14
15 InspectorServiceImpl::InspectorServiceImpl(DocumentView* view)
16 : view_(view->GetWeakPtr()) {
17 }
18
19 InspectorServiceImpl::~InspectorServiceImpl() {
20 }
21
22 void InspectorServiceImpl::Inject() {
23 if (!view_)
24 return;
25 view_->web_view()->injectModule("/sky/framework/inspector/inspector.sky");
26 }
27
28 } // namespace sky
OLDNEW
« sky/engine/web/WebViewImpl.cpp ('K') | « sky/viewer/services/inspector_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698