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

Unified Diff: third_party/document_image_extractor/src/document_video.js

Issue 1138123002: Update third_party/document_image_extractor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: third_party/document_image_extractor/src/document_video.js
diff --git a/third_party/document_image_extractor/src/document_video.js b/third_party/document_image_extractor/src/document_video.js
index 747f4dc5dbe36442e3844e9105d0258c5b1bec94..ded38c88b64e2f5430db1ee0e34b42c3aaed1f1c 100644
--- a/third_party/document_image_extractor/src/document_video.js
+++ b/third_party/document_image_extractor/src/document_video.js
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-goog.provide('image.collections.extension.DocumentVideo');
+goog.provide('image.collections.extension.domextractor.DocumentVideo');
-goog.require('image.collections.extension.DocumentFeature');
+goog.require('image.collections.extension.domextractor.DocumentFeature');
+goog.require('image.collections.extension.domextractor.DomUtils');
goog.scope(function() {
-var DocumentFeature = image.collections.extension.DocumentFeature;
+var DocumentFeature = image.collections.extension.domextractor.DocumentFeature;
@@ -15,21 +16,27 @@ var DocumentFeature = image.collections.extension.DocumentFeature;
* A class representing a salient video in an HTML document.
* @param {number} relevance
* @param {string} url
- * @param {!goog.math.Size} size
+ * @param {!image.collections.extension.domextractor.Size} size
* @extends {DocumentFeature}
* @constructor
+ * @suppress {undefinedNames}
*/
-image.collections.extension.DocumentVideo = function(relevance, url, size) {
+image.collections.extension.domextractor.DocumentVideo =
+ function(relevance, url, size) {
DocumentVideo.base(this, 'constructor', relevance);
/** @private {string} Absolute video url. */
this.url_ = url;
- /** @private {!goog.math.Size} Video resolution in pixels */
+ /**
+ * @private {!image.collections.extension.domextractor.Size} Video resolution
+ * in pixels
+ */
this.size_ = size;
};
-goog.inherits(image.collections.extension.DocumentVideo, DocumentFeature);
-var DocumentVideo = image.collections.extension.DocumentVideo;
+image.collections.extension.domextractor.DomUtils.inherits(
+ image.collections.extension.domextractor.DocumentVideo, DocumentFeature);
+var DocumentVideo = image.collections.extension.domextractor.DocumentVideo;
/** @enum {string} */
@@ -50,7 +57,7 @@ DocumentVideo.prototype.getUrl = function() {
/**
* Returns the video resolution in pixels.
- * @return {!goog.math.Size}
+ * @return {!image.collections.extension.domextractor.Size}
*/
DocumentVideo.prototype.getSize = function() {
return this.size_;

Powered by Google App Engine
This is Rietveld 408576698