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

Side by Side 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 new widget 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 cr.define('print_preview', function() {
6 'use strict';
7
8 function Size(width, height) {
9 this.width_ = width;
10 this.height_ = height;
11 };
12
13 Size.prototype = {
14 get width() {
15 return this.width_;
16 },
17
18 get height() {
19 return this.height_;
20 },
21
22 equals: function(other) {
23 return other != null &&
24 this.width_ == other.width_ &&
25 this.height_ == other.height_;
26 }
27 };
28
29 return {
30 Size: Size
31 };
32 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698