Scroll in Android HTML Element accessibility navigation
[chromium-blink-merge.git] / ui / app_list / PRESUBMIT.py
blob73df615a6efac0b92b33237a3a04b2320bdb4875
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 """Presubmit script for app_list.
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8 for more details about the presubmit API built into depot_tools.
9 """
11 INCLUDE_CPP_FILES_ONLY = (
12 r'.*\.(cc|h)$',
15 EXCLUDE = (
16 # Objective C confuses everything.
17 r'.*/cocoa/.*',
20 def CheckChangeLintsClean(input_api, output_api):
21 """Makes sure that the ui/app_list/ code is cpplint clean."""
22 black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE
23 sources = lambda x: input_api.FilterSourceFile(
24 x, white_list = INCLUDE_CPP_FILES_ONLY, black_list = black_list)
25 return input_api.canned_checks.CheckChangeLintsClean(
26 input_api, output_api, sources, lint_filters=[], verbose_level=1)
28 def CheckChangeOnUpload(input_api, output_api):
29 results = []
30 results += CheckChangeLintsClean(input_api, output_api)
31 results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
32 return results