Add maruel, remove cmp&darin from //testing/buildbot/OWNERS.
[chromium-blink-merge.git] / third_party / document_image_extractor / src / size.js
bloba77325938576b499637922062cc6647d21fb2ab9
1 // Copyright 2015  The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 goog.provide('image.collections.extension.domextractor.Size');
8 goog.scope(function() {
12 /**
13  * @param {number} width
14  * @param {number} height
15  * @constructor
16  */
17 image.collections.extension.domextractor.Size = function(width, height) {
18   /** @type {number} */
19   this.width = width;
21   /** @type {number} */
22   this.height = height;
26 /**
27  * @return {number} The area of the size (width * height).
28  */
29 image.collections.extension.domextractor.Size.prototype.area = function() {
30   return this.width * this.height;
32 });