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

Unified Diff: tools/gn/item.h

Issue 46313003: Implement target visibility in GN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: tools/gn/item.h
diff --git a/tools/gn/item.h b/tools/gn/item.h
index 4d9f25beb04090354cbe4048c5fa530d85eb5638..4e582bfca305de7d569f240209050a6aca1e97fc 100644
--- a/tools/gn/item.h
+++ b/tools/gn/item.h
@@ -8,6 +8,7 @@
#include <string>
#include "tools/gn/label.h"
+#include "tools/gn/visibility.h"
class Config;
class ParseNode;
@@ -31,6 +32,9 @@ class Item {
const ParseNode* defined_from() const { return defined_from_; }
void set_defined_from(const ParseNode* df) { defined_from_ = df; }
+ Visibility& visibility() { return visibility_; }
+ const Visibility& visibility() const { return visibility_; }
+
// Manual RTTI.
virtual Config* AsConfig();
virtual const Config* AsConfig() const;
@@ -51,6 +55,8 @@ class Item {
const Settings* settings_;
Label label_;
const ParseNode* defined_from_;
+
+ Visibility visibility_;
};
#endif // TOOLS_GN_ITEM_H_

Powered by Google App Engine
This is Rietveld 408576698