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

Unified Diff: chrome/browser/resources/file_manager/js/tree.css.js

Issue 39123003: [Files.app] Split the JavaScript files into subdirectories: common, background, and foreground (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed test failure. Created 7 years, 2 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/file_manager/js/tree.css.js
diff --git a/chrome/browser/resources/file_manager/js/tree.css.js b/chrome/browser/resources/file_manager/js/tree.css.js
deleted file mode 100644
index 6b89acbdb866b5af88b230a9649cea7b8235855a..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/file_manager/js/tree.css.js
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2013 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.
-
-'use strict';
-
-/**
- * Custom version of chrome://resources/css/tree.css.js, adding support for
- * inverted arrow icons.
- */
-(function() {
- /**
- * @type {number}
- * @const
- */
- var WIDTH = 14;
-
- /**
- * @type {number}
- * @const
- */
- var HEIGHT = WIDTH / 2 + 2;
-
- /**
- * @type {number}
- * @const
- */
- var MARGIN = 1;
-
- /**
- * @param {string} name CSS canvas identifier.
- * @param {string} backgroundColor Background color.
- * @param {string} strokeColor Outline color.
- */
- function prepareTriangle(name, backgroundColor, strokeColor) {
- var ctx = document.getCSSCanvasContext('2d',
- name,
- WIDTH + MARGIN * 2,
- HEIGHT + MARGIN * 2);
-
- ctx.fillStyle = backgroundColor;
- ctx.strokeStyle = strokeColor;
- ctx.translate(MARGIN, MARGIN);
-
- ctx.beginPath();
- ctx.moveTo(0, 0);
- ctx.lineTo(0, 2);
- ctx.lineTo(WIDTH / 2, HEIGHT);
- ctx.lineTo(WIDTH, 2);
- ctx.lineTo(WIDTH, 0);
- ctx.closePath();
- ctx.fill();
- ctx.stroke();
- }
-
- prepareTriangle(
- 'tree-triangle', 'rgba(122, 122, 122, 0.6)', 'rgba(0, 0, 0, 0)');
- prepareTriangle('tree-triangle-inverted', '#ffffff', '#ffffff');
-})();

Powered by Google App Engine
This is Rietveld 408576698