Index: chrome/browser/ui/cocoa/DEPS |
diff --git a/chrome/browser/ui/cocoa/DEPS b/chrome/browser/ui/cocoa/DEPS |
index 2fedb51bea63abeec57b6b54e5a8434d5cc990a0..c536acc9c8e6e5b687d01f4810e35db018531137 100644 |
--- a/chrome/browser/ui/cocoa/DEPS |
+++ b/chrome/browser/ui/cocoa/DEPS |
@@ -2,4 +2,18 @@ include_rules = [ |
"+third_party/apple_sample_code", # Apple code ImageAndTextCell. |
"+third_party/molokocacao", # For NSBezierPath additions. |
"+third_party/ocmock", # For unit tests. |
+ # Tooklit-views dependencies shouldn't be introduced here except for special |
+ # cases below. |
+ "-ui/views", |
] |
+ |
+specific_include_rules = { |
+ # Allow access to toolkit-views for specific bridging classes to integrate |
+ # with a Cocoa browser window. These need to have "_views" somewhere in the |
+ # file name. Mac-specific toolkit-views code that doesn't need to interact |
+ # with a Cocoa browser should go under chrome/browser/ui/views. |
+ ".*(_views).*\.(cc|h|mm)$": [ |
+ "+chrome/browser/ui/views", |
+ "+ui/views", |
+ ], |
+} |