Renamed "WebView" -> "WebViewImpl" in web_view.js and other files that import it
Imported from:
a615ea0839
%5E%21/
This commit is contained in:
parent
ac51207860
commit
7f5fb4e6f9
2 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
WebView = require './web-view'
|
||||
WebViewImpl = require './web-view'
|
||||
guestViewInternal = require './guest-view-internal'
|
||||
webViewConstants = require './web-view-constants'
|
||||
|
||||
|
@ -144,7 +144,7 @@ class HttpReferrerAttribute extends WebViewAttribute
|
|||
@webViewImpl.parseSrcAttribute()
|
||||
|
||||
# Sets up all of the webview attributes.
|
||||
WebView::setupWebViewAttributes = ->
|
||||
WebViewImpl::setupWebViewAttributes = ->
|
||||
@attributes = {}
|
||||
|
||||
@attributes[webViewConstants.ATTRIBUTE_ALLOWTRANSPARENCY] = new AllowTransparencyAttribute(this)
|
||||
|
|
|
@ -9,7 +9,7 @@ nextId = 0
|
|||
getNextId = -> ++nextId
|
||||
|
||||
# Represents the internal state of the WebView node.
|
||||
class WebView
|
||||
class WebViewImpl
|
||||
constructor: (@webviewNode) ->
|
||||
v8Util.setHiddenValue @webviewNode, 'internal', this
|
||||
@attached = false
|
||||
|
@ -37,7 +37,7 @@ class WebView
|
|||
createBrowserPluginNode: ->
|
||||
# We create BrowserPlugin as a custom element in order to observe changes
|
||||
# to attributes synchronously.
|
||||
browserPluginNode = new WebView.BrowserPlugin()
|
||||
browserPluginNode = new WebViewImpl.BrowserPlugin()
|
||||
v8Util.setHiddenValue browserPluginNode, 'internal', this
|
||||
browserPluginNode
|
||||
|
||||
|
@ -282,7 +282,7 @@ registerBrowserPluginElement = ->
|
|||
# Load the plugin immediately.
|
||||
unused = this.nonExistentAttribute
|
||||
|
||||
WebView.BrowserPlugin = webFrame.registerEmbedderCustomElement 'browserplugin',
|
||||
WebViewImpl.BrowserPlugin = webFrame.registerEmbedderCustomElement 'browserplugin',
|
||||
extends: 'object', prototype: proto
|
||||
|
||||
delete proto.createdCallback
|
||||
|
@ -295,7 +295,7 @@ registerWebViewElement = ->
|
|||
proto = Object.create HTMLObjectElement.prototype
|
||||
|
||||
proto.createdCallback = ->
|
||||
new WebView(this)
|
||||
new WebViewImpl(this)
|
||||
|
||||
proto.attributeChangedCallback = (name, oldValue, newValue) ->
|
||||
internal = v8Util.getHiddenValue this, 'internal'
|
||||
|
@ -342,7 +342,7 @@ registerWebViewElement = ->
|
|||
"getId"
|
||||
]
|
||||
|
||||
# Forward proto.foo* method calls to WebView.foo*.
|
||||
# Forward proto.foo* method calls to WebViewImpl.foo*.
|
||||
createHandler = (m) ->
|
||||
(args...) ->
|
||||
internal = v8Util.getHiddenValue this, 'internal'
|
||||
|
@ -367,4 +367,4 @@ listener = (event) ->
|
|||
window.removeEventListener event.type, listener, useCapture
|
||||
window.addEventListener 'readystatechange', listener, true
|
||||
|
||||
module.exports = WebView
|
||||
module.exports = WebViewImpl
|
||||
|
|
Loading…
Reference in a new issue