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

Side by Side Diff: Tools/GardeningServer/base/ct-canvas-2d-context-mock.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Tools/GardeningServer/app.yaml ('k') | Tools/GardeningServer/bower.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6
7 <script>
8 function CTCanvas2dContextMock() {
9 this.imageSmoothingEnabled = true;
10 this._translate = {x: 0, y: 0};
11 this._strokeRect = {x: 0, y: 0, width: 0, height: 0};
12 this._scale = {x: 1, y: 1};
13 this._drawImagePosition = {x: 0, y: 0};
14 }
15
16 CTCanvas2dContextMock.prototype.translate = function(x, y) {
17 this._translate = {
18 x: this._translate.x + x,
19 y: this._translate.y + y,
20 };
21 }
22
23 CTCanvas2dContextMock.prototype.strokeRect = function(x, y, width, height) {
24 this._strokeRect = {x: x, y: y, width: width, height: height};
25 }
26
27 CTCanvas2dContextMock.prototype.scale = function(x, y) {
28 this._scale = {
29 x: this._scale.x * x,
30 y: this._scale.y * y,
31 };
32 }
33
34 CTCanvas2dContextMock.prototype.drawImage = function(image, x, y) {
35 this._drawImagePosition = {x: x, y: y};
36 }
37 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/app.yaml ('k') | Tools/GardeningServer/bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698