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

Unified Diff: chrome/browser/resources/print_preview/data/size.js

Issue 10108001: Refactor print preview web ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra files Created 8 years, 8 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: chrome/browser/resources/print_preview/data/size.js
diff --git a/chrome/browser/resources/print_preview/data/size.js b/chrome/browser/resources/print_preview/data/size.js
new file mode 100644
index 0000000000000000000000000000000000000000..ab114a8f3ed06e99fc55a7444a43a012625f030b
--- /dev/null
+++ b/chrome/browser/resources/print_preview/data/size.js
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+cr.define('print_preview', function() {
+ 'use strict';
+
+ function Size(width, height) {
+ this.width_ = width;
+ this.height_ = height;
+ };
+
+ Size.prototype = {
+ get width() {
+ return this.width_;
+ },
+
+ get height() {
+ return this.height_;
+ },
+
+ equals: function(other) {
+ return other != null &&
+ this.width_ == other.width_ &&
+ this.height_ == other.height_;
+ }
+ };
+
+ return {
+ Size: Size
+ };
+});

Powered by Google App Engine
This is Rietveld 408576698