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'
|
guestViewInternal = require './guest-view-internal'
|
||||||
webViewConstants = require './web-view-constants'
|
webViewConstants = require './web-view-constants'
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ class HttpReferrerAttribute extends WebViewAttribute
|
||||||
@webViewImpl.parseSrcAttribute()
|
@webViewImpl.parseSrcAttribute()
|
||||||
|
|
||||||
# Sets up all of the webview attributes.
|
# Sets up all of the webview attributes.
|
||||||
WebView::setupWebViewAttributes = ->
|
WebViewImpl::setupWebViewAttributes = ->
|
||||||
@attributes = {}
|
@attributes = {}
|
||||||
|
|
||||||
@attributes[webViewConstants.ATTRIBUTE_ALLOWTRANSPARENCY] = new AllowTransparencyAttribute(this)
|
@attributes[webViewConstants.ATTRIBUTE_ALLOWTRANSPARENCY] = new AllowTransparencyAttribute(this)
|
||||||
|
|
|
@ -9,7 +9,7 @@ nextId = 0
|
||||||
getNextId = -> ++nextId
|
getNextId = -> ++nextId
|
||||||
|
|
||||||
# Represents the internal state of the WebView node.
|
# Represents the internal state of the WebView node.
|
||||||
class WebView
|
class WebViewImpl
|
||||||
constructor: (@webviewNode) ->
|
constructor: (@webviewNode) ->
|
||||||
v8Util.setHiddenValue @webviewNode, 'internal', this
|
v8Util.setHiddenValue @webviewNode, 'internal', this
|
||||||
@attached = false
|
@attached = false
|
||||||
|
@ -37,7 +37,7 @@ class WebView
|
||||||
createBrowserPluginNode: ->
|
createBrowserPluginNode: ->
|
||||||
# We create BrowserPlugin as a custom element in order to observe changes
|
# We create BrowserPlugin as a custom element in order to observe changes
|
||||||
# to attributes synchronously.
|
# to attributes synchronously.
|
||||||
browserPluginNode = new WebView.BrowserPlugin()
|
browserPluginNode = new WebViewImpl.BrowserPlugin()
|
||||||
v8Util.setHiddenValue browserPluginNode, 'internal', this
|
v8Util.setHiddenValue browserPluginNode, 'internal', this
|
||||||
browserPluginNode
|
browserPluginNode
|
||||||
|
|
||||||
|
@ -282,7 +282,7 @@ registerBrowserPluginElement = ->
|
||||||
# Load the plugin immediately.
|
# Load the plugin immediately.
|
||||||
unused = this.nonExistentAttribute
|
unused = this.nonExistentAttribute
|
||||||
|
|
||||||
WebView.BrowserPlugin = webFrame.registerEmbedderCustomElement 'browserplugin',
|
WebViewImpl.BrowserPlugin = webFrame.registerEmbedderCustomElement 'browserplugin',
|
||||||
extends: 'object', prototype: proto
|
extends: 'object', prototype: proto
|
||||||
|
|
||||||
delete proto.createdCallback
|
delete proto.createdCallback
|
||||||
|
@ -295,7 +295,7 @@ registerWebViewElement = ->
|
||||||
proto = Object.create HTMLObjectElement.prototype
|
proto = Object.create HTMLObjectElement.prototype
|
||||||
|
|
||||||
proto.createdCallback = ->
|
proto.createdCallback = ->
|
||||||
new WebView(this)
|
new WebViewImpl(this)
|
||||||
|
|
||||||
proto.attributeChangedCallback = (name, oldValue, newValue) ->
|
proto.attributeChangedCallback = (name, oldValue, newValue) ->
|
||||||
internal = v8Util.getHiddenValue this, 'internal'
|
internal = v8Util.getHiddenValue this, 'internal'
|
||||||
|
@ -342,7 +342,7 @@ registerWebViewElement = ->
|
||||||
"getId"
|
"getId"
|
||||||
]
|
]
|
||||||
|
|
||||||
# Forward proto.foo* method calls to WebView.foo*.
|
# Forward proto.foo* method calls to WebViewImpl.foo*.
|
||||||
createHandler = (m) ->
|
createHandler = (m) ->
|
||||||
(args...) ->
|
(args...) ->
|
||||||
internal = v8Util.getHiddenValue this, 'internal'
|
internal = v8Util.getHiddenValue this, 'internal'
|
||||||
|
@ -367,4 +367,4 @@ listener = (event) ->
|
||||||
window.removeEventListener event.type, listener, useCapture
|
window.removeEventListener event.type, listener, useCapture
|
||||||
window.addEventListener 'readystatechange', listener, true
|
window.addEventListener 'readystatechange', listener, true
|
||||||
|
|
||||||
module.exports = WebView
|
module.exports = WebViewImpl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue