Another take on menu's. This uses the hosting menu scroll view container as a menuba...
[chromium-blink-merge.git] / app / PRESUBMIT.py
blobed0cbd1df02f631c1e8d94fea2c99384d2a50259
1 #!/usr/bin/python
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 """Makes sure that the app/ code is cpplint clean."""
9 INCLUDE_CPP_FILES_ONLY = (
10 r'.*\.cc$', r'.*\.h$'
13 EXCLUDE = (
14 # Autogenerated window resources files are off limits
15 r'.*resource.h$',
18 def CheckChangeOnUpload(input_api, output_api):
19 results = []
20 black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE
21 sources = lambda x: input_api.FilterSourceFile(
22 x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list)
23 results.extend(input_api.canned_checks.CheckChangeLintsClean(
24 input_api, output_api, sources))
25 return results
27 def GetPreferredTrySlaves():
28 return ['win', 'linux', 'linux_view', 'linux_chromeos', 'mac']