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

Side by Side Diff: mojo/public/tools/bindings/pylib/mojom/generate/module.py

Issue 2656583002: Remove unused typemap includes from generated C++ mojo bindings. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « mojo/public/tools/bindings/generators/mojom_cpp_generator.py ('k') | services/catalog/entry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This module's classes provide an interface to mojo modules. Modules are 5 # This module's classes provide an interface to mojo modules. Modules are
6 # collections of interfaces and structs to be used by mojo ipc clients and 6 # collections of interfaces and structs to be used by mojo ipc clients and
7 # servers. 7 # servers.
8 # 8 #
9 # A simple interface would be created this way: 9 # A simple interface would be created this way:
10 # module = mojom.generate.module.Module('Foo') 10 # module = mojom.generate.module.Module('Foo')
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 683
684 684
685 def IsBoolKind(kind): 685 def IsBoolKind(kind):
686 return kind.spec == BOOL.spec 686 return kind.spec == BOOL.spec
687 687
688 688
689 def IsFloatKind(kind): 689 def IsFloatKind(kind):
690 return kind.spec == FLOAT.spec 690 return kind.spec == FLOAT.spec
691 691
692 692
693 def IsDoubleKind(kind):
694 return kind.spec == DOUBLE.spec
695
696
693 def IsIntegralKind(kind): 697 def IsIntegralKind(kind):
694 return (kind.spec == BOOL.spec or 698 return (kind.spec == BOOL.spec or
695 kind.spec == INT8.spec or 699 kind.spec == INT8.spec or
696 kind.spec == INT16.spec or 700 kind.spec == INT16.spec or
697 kind.spec == INT32.spec or 701 kind.spec == INT32.spec or
698 kind.spec == INT64.spec or 702 kind.spec == INT64.spec or
699 kind.spec == UINT8.spec or 703 kind.spec == UINT8.spec or
700 kind.spec == UINT16.spec or 704 kind.spec == UINT16.spec or
701 kind.spec == UINT32.spec or 705 kind.spec == UINT32.spec or
702 kind.spec == UINT64.spec) 706 kind.spec == UINT64.spec)
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 return True 882 return True
879 elif IsAnyInterfaceKind(kind): 883 elif IsAnyInterfaceKind(kind):
880 return True 884 return True
881 elif IsArrayKind(kind): 885 elif IsArrayKind(kind):
882 return Check(kind.kind) 886 return Check(kind.kind)
883 elif IsMapKind(kind): 887 elif IsMapKind(kind):
884 return Check(kind.key_kind) or Check(kind.value_kind) 888 return Check(kind.key_kind) or Check(kind.value_kind)
885 else: 889 else:
886 return False 890 return False
887 return Check(kind) 891 return Check(kind)
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/mojom_cpp_generator.py ('k') | services/catalog/entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698