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

Unified Diff: sky/viewer/document_view.cc

Issue 696733003: Introduce blink::ServiceProvider (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
« sky/engine/core/frame/FrameHost.h ('K') | « sky/viewer/document_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/document_view.cc
diff --git a/sky/viewer/document_view.cc b/sky/viewer/document_view.cc
index d5754d75405afcd8b79b781b0e73166003bf4cb0..da9f3a32f01e84fc19702d9c89a9798b9fdedb23 100644
--- a/sky/viewer/document_view.cc
+++ b/sky/viewer/document_view.cc
@@ -182,6 +182,14 @@ void DocumentView::didCreateScriptContext(blink::WebLocalFrame* frame,
gin::ConvertToV8(isolate, internals));
}
+blink::ServiceProvider* DocumentView::services() {
+ return this;
+}
+
+mojo::NavigatorHost* DocumentView::NavigatorHost() {
+ return navigator_host_.get();
+}
+
void DocumentView::OnViewBoundsChanged(mojo::View* view,
const mojo::Rect& old_bounds,
const mojo::Rect& new_bounds) {
« sky/engine/core/frame/FrameHost.h ('K') | « sky/viewer/document_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698