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

Unified Diff: ui/gfx/vector_icon_types.h

Issue 2251643011: Move Ash-specific vector icons to ash/common/resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for review 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: ui/gfx/vector_icon_types.h
diff --git a/ui/gfx/vector_icon_types.h b/ui/gfx/vector_icon_types.h
index cc1be94d0f8ba614872f05f231ea037b69e9e329..fd6fdc0aa396268131db2f1c7f980cda65a47183 100644
--- a/ui/gfx/vector_icon_types.h
+++ b/ui/gfx/vector_icon_types.h
@@ -12,6 +12,7 @@
namespace gfx {
+struct VectorIcon;
Evan Stade 2016/08/26 22:34:06 why is this here?
tdanderson 2016/08/31 22:18:21 Gone.
enum class VectorIconId;
// The size of a single side of the square canvas to which path coordinates
@@ -72,6 +73,13 @@ struct PathElement {
};
};
+struct VectorIcon {
+ gfx::PathElement* path;
oshima 2016/08/31 00:11:44 would it be better to have initializer (=nullptr;)
tdanderson 2016/08/31 22:18:21 Done.
+ gfx::PathElement* path_1x;
+
+ bool is_empty() const { return !path; }
+};
+
// Returns an array of path commands and arguments, terminated by END.
const PathElement* GetPathForVectorIcon(VectorIconId id);
// As above, but returns an icon specifically adjusted for 1x scale factors.

Powered by Google App Engine
This is Rietveld 408576698