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

Side by Side Diff: third_party/document_image_extractor/src/size.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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 goog.provide('image.collections.extension.domextractor.Size');
6
7
8 goog.scope(function() {
9
10
11
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;
20
21 /** @type {number} */
22 this.height = height;
23 };
24
25
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;
31 };
32 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698