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

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: fix sources again 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
« no previous file with comments | « ui/gfx/paint_vector_icon.cc ('k') | ui/gfx/vector_icons/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..034ab99fb2cc70286863accd7b5fdd83ed185a87 100644
--- a/ui/gfx/vector_icon_types.h
+++ b/ui/gfx/vector_icon_types.h
@@ -72,6 +72,17 @@ struct PathElement {
};
};
+struct VectorIcon {
+ VectorIcon() : path_(nullptr), path_1x_(nullptr) {}
+ VectorIcon(gfx::PathElement* path, gfx::PathElement* path_1x)
+ : path_(path), path_1x_(path_1x) {}
+
+ bool is_empty() const { return !path_; }
+
+ gfx::PathElement* path_;
+ gfx::PathElement* path_1x_;
+};
+
// 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.
« no previous file with comments | « ui/gfx/paint_vector_icon.cc ('k') | ui/gfx/vector_icons/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698