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

Unified Diff: ash/common/resources/vector_icons.cc

Issue 2251643011: Move Ash-specific vector icons to ash/common/resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: ash/common/resources/vector_icons.cc
diff --git a/ui/gfx/vector_icons/system_menu_keyboard.icon b/ash/common/resources/vector_icons.cc
similarity index 59%
copy from ui/gfx/vector_icons/system_menu_keyboard.icon
copy to ash/common/resources/vector_icons.cc
index 34bc4446f5678cacf37cef4947f2964be2ab3aa3..10111fec030dc0471eadae4a7f36534915894c15 100644
--- a/ui/gfx/vector_icons/system_menu_keyboard.icon
+++ b/ash/common/resources/vector_icons.cc
@@ -2,6 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// vector_icons.cc.template is used to generate vector_icons.cc. Edit the former
+// rather than the latter.
+
+#include "ash/common/resources/vector_icons.h"
+
+#include "base/logging.h"
+#include "ui/gfx/vector_icon_types.h"
+
+namespace ash {
+
+using namespace gfx;
+
+static gfx::PathElement SYSTEM_MENU_KEYBOARD_PATH[] = {
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
CANVAS_DIMENSIONS, 40,
MOVE_TO, 32.7f, 9,
H_LINE_TO, 6.3f,
@@ -80,3 +96,30 @@ R_H_LINE_TO, 3,
R_V_LINE_TO, 3,
CLOSE,
END
+};
+
+static gfx::PathElement SYSTEM_MENU_KEYBOARD_PATH_1x[] = {
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+CANVAS_DIMENSIONS, 24,
+MOVE_TO, 12, 8.41f,
+LINE_TO, 16.59f, 13,
+LINE_TO, 18, 11.59f,
+R_LINE_TO, -6, -6,
+R_LINE_TO, -6, 6,
+LINE_TO, 7.41f, 13,
+LINE_TO, 12, 8.41f,
+CLOSE,
+MOVE_TO, 6, 18,
+R_H_LINE_TO, 12,
+R_V_LINE_TO, -2,
+H_LINE_TO, 6,
+R_V_LINE_TO, 2,
+CLOSE,
+END
+};
+
+const gfx::VectorIcon SYSTEM_MENU_KEYBOARD = { SYSTEM_MENU_KEYBOARD_PATH, SYSTEM_MENU_KEYBOARD_PATH_1x };
+
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698