Add remote.getGuestWebContents

This commit is contained in:
Cheng Zhao 2014-10-24 19:57:29 +08:00
parent c0955eaa90
commit e95c1256a0
4 changed files with 18 additions and 2 deletions

View file

@ -1,6 +1,7 @@
v8Util = process.atomBinding 'v8_util'
guestViewInternal = require './guest-view-internal'
webFrame = require 'web-frame'
remote = require 'remote'
# ID generator.
nextId = 0
@ -357,8 +358,7 @@ class WebView
return
# Navigate to |this.src|.
# FIXME
# WebViewInternal.navigate @guestInstanceId, @src
remote.getGuestWebContents(@guestInstanceId).loadUrl @src
parseAttributes: ->
return unless @elementAttached