| Index: third_party/grpc/src/compiler/objective_c_generator_helpers.h
|
| diff --git a/third_party/WebKit/public/web/WebTextDecorationType.h b/third_party/grpc/src/compiler/objective_c_generator_helpers.h
|
| similarity index 66%
|
| copy from third_party/WebKit/public/web/WebTextDecorationType.h
|
| copy to third_party/grpc/src/compiler/objective_c_generator_helpers.h
|
| index 533c46bf2446ee4ed44db45aa8c33e45e55e0aa7..1f8c80014f0fac4e4f7866782a0462766793c080 100644
|
| --- a/third_party/WebKit/public/web/WebTextDecorationType.h
|
| +++ b/third_party/grpc/src/compiler/objective_c_generator_helpers.h
|
| @@ -1,5 +1,7 @@
|
| /*
|
| - * Copyright (C) 2011 Google Inc. All rights reserved.
|
| + *
|
| + * Copyright 2015, Google Inc.
|
| + * All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -26,19 +28,31 @@
|
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + *
|
| */
|
|
|
| -#ifndef WebTextDecorationType_h
|
| -#define WebTextDecorationType_h
|
| +#ifndef GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_HELPERS_H
|
| +#define GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_HELPERS_H
|
| +
|
| +#include <map>
|
| +#include "src/compiler/config.h"
|
| +#include "src/compiler/generator_helpers.h"
|
| +
|
| +namespace grpc_objective_c_generator {
|
|
|
| -namespace blink {
|
| +using ::grpc::protobuf::FileDescriptor;
|
| +using ::grpc::protobuf::ServiceDescriptor;
|
| +using ::grpc::string;
|
|
|
| -enum WebTextDecorationType {
|
| - WebTextDecorationTypeSpelling = 1 << 1,
|
| - WebTextDecorationTypeGrammar = 1 << 2,
|
| - WebTextDecorationTypeInvisibleSpellcheck = 1 << 3,
|
| -};
|
| +inline string MessageHeaderName(const FileDescriptor *file) {
|
| + return grpc_generator::FileNameInUpperCamel(file) + ".pbobjc.h";
|
| +}
|
|
|
| -} // namespace blink
|
| +inline string ServiceClassName(const ServiceDescriptor *service) {
|
| + const FileDescriptor *file = service->file();
|
| + string prefix = file->options().objc_class_prefix();
|
| + return prefix + service->name();
|
| +}
|
|
|
| -#endif
|
| +}
|
| +#endif // GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_HELPERS_H
|
|
|