summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/pepper/3rdparty/pepper.js/view.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/pepper/3rdparty/pepper.js/view.js')
-rw-r--r--src/plugins/platforms/pepper/3rdparty/pepper.js/view.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/platforms/pepper/3rdparty/pepper.js/view.js b/src/plugins/platforms/pepper/3rdparty/pepper.js/view.js
index 423539fc6b..8ceec3a321 100644
--- a/src/plugins/platforms/pepper/3rdparty/pepper.js/view.js
+++ b/src/plugins/platforms/pepper/3rdparty/pepper.js/view.js
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+var ENVIRONMENT_IS_PTHREAD; // is set to true in pthread-main.js if we are in a worker
+if(!ENVIRONMENT_IS_PTHREAD) {
+
(function() {
var View_IsView = function(resource) {
return resources.is(resource, VIEW_RESOURCE);
@@ -88,4 +91,17 @@
View_GetDeviceScale,
View_GetCSSScale,
]);
+
+ registerInterface("PPB_View;1.2", [
+ View_IsView,
+ View_GetRect,
+ View_IsFullscreen,
+ View_IsVisible,
+ View_IsPageVisible,
+ View_GetClipRect,
+ View_GetDeviceScale,
+ View_GetCSSScale,
+ ]);
})();
+
+}