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

Unified Diff: sky/tools/debugger/navigator_host_impl.cc

Issue 690363002: Make clicking links work in SkyDB (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/tools/debugger/navigator_host_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/debugger/navigator_host_impl.cc
diff --git a/sky/tools/debugger/navigator_host_impl.cc b/sky/tools/debugger/navigator_host_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5422b6400b75894b1c61fec79f7d9ecfef13dbe7
--- /dev/null
+++ b/sky/tools/debugger/navigator_host_impl.cc
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sky/tools/debugger/navigator_host_impl.h"
+
+#include "sky/tools/debugger/debugger.h"
+
+namespace sky {
+namespace debugger {
+
+NavigatorHostImpl::NavigatorHostImpl(SkyDebugger* debugger)
+ : debugger_(debugger->GetWeakPtr()) {
+}
+
+NavigatorHostImpl::~NavigatorHostImpl() {
+}
+
+void NavigatorHostImpl::DidNavigateLocally(const mojo::String& url) {
+ // TODO(abarth): Do something interesting.
+}
+
+void NavigatorHostImpl::RequestNavigate(mojo::Target target,
+ mojo::URLRequestPtr request) {
+ if (!debugger_)
+ return;
+ debugger_->NavigateToURL(request->url);
+}
+
+} // namespace debugger
+} // namespace sky
« no previous file with comments | « sky/tools/debugger/navigator_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698