OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Create the drop down arrow for the drop down buttons. | 5 // Create the drop down arrow for the drop down buttons. |
6 (function() { | 6 (function() { |
7 var ctx = document.getCSSCanvasContext('2d', 'drop-down-arrow', 9, 4); | 7 var ctx = document.getCSSCanvasContext('2d', 'drop-down-arrow', 9, 4); |
8 ctx.fillStyle = '#000'; | 8 ctx.fillStyle = '#000'; |
9 ctx.translate(1.5, .5); | 9 ctx.translate(1.5, .5); |
10 ctx.beginPath(); | 10 ctx.beginPath(); |
11 ctx.moveTo(0, 0); | 11 ctx.moveTo(0, 0); |
12 ctx.lineTo(6, 0); | 12 ctx.lineTo(6, 0); |
13 ctx.lineTo(3, 3); | 13 ctx.lineTo(3, 3); |
14 ctx.closePath(); | 14 ctx.closePath(); |
15 ctx.fill(); | 15 ctx.fill(); |
16 ctx.stroke(); | 16 ctx.stroke(); |
17 })(); | 17 })(); |
OLD | NEW |