Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index e2e042336926e54a01f47dd33769c9a534c7c92c..0076836a086d7d5f7530b3f8caff282c84ad9f98 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -164,6 +164,21 @@ _BANNED_CPP_FUNCTIONS = ( |
(), |
), |
( |
+ r'XSelectInput|CWEventMask|XCB_CW_EVENT_MASK', |
+ ( |
+ 'Chrome clients wishing to select events on X windows should use', |
+ 'ui::XScopedEventSelector. It is safe to ignore this warning only if', |
+ 'you are selecting events from the GPU process, or if you are using', |
+ 'an XDisplay other than gfx::GetXDisplay().', |
+ ), |
+ True, |
+ ( |
+ r"^ui[\\\/]gl[\\\/].*\.cc$", |
+ r"^media[\\\/]gpu[\\\/].*\.cc$", |
+ r"^gpu[\\\/].*\.cc$", |
+ ), |
+ ), |
+ ( |
'ScopedAllowIO', |
( |
'New code should not use ScopedAllowIO. Post a task to the blocking', |