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

Unified Diff: chrome/browser/ui/cocoa/DEPS

Issue 1162023008: DEPS rule to restrict ui/views dependencies in c/b/ui/cocoa (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: support views_cocoa and views_mac Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/DEPS
diff --git a/chrome/browser/ui/cocoa/DEPS b/chrome/browser/ui/cocoa/DEPS
index 2fedb51bea63abeec57b6b54e5a8434d5cc990a0..bbce8e3c6484aaa8b247bf4540b6f5f9fbbb1807 100644
--- a/chrome/browser/ui/cocoa/DEPS
+++ b/chrome/browser/ui/cocoa/DEPS
@@ -2,4 +2,21 @@ 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",
+ ],
+ "manage_password_item_view_controller.mm": [
Nico 2015/06/05 06:29:43 this seems a bit ad-hoc?
tapted 2015/06/05 06:38:56 yeah, it's been around for nearly a year (since r2
Nico 2015/06/05 06:56:13 Seems nicer to me, but up to you :-)
tapted 2015/06/05 07:31:42 Done. (and yeah - I think it's nicer too.. and the
+ "+ui/views/layout/layout_constants.h",
+ ],
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698