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