flutter_flutter/shell/platform/darwin/common/string_conversions.h
Adam Barth b1c0ea79ca Switch engine over to platform messages (#3153)
This patch removes the use of the host messages mojom and switch all
message routing over to platform messages.
2016-10-19 22:36:00 -07:00

21 lines
601 B
C++

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_STRING_CONVERSIONS_H_
#define FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_STRING_CONVERSIONS_H_
#include <Foundation/Foundation.h>
#include <vector>
namespace shell {
std::vector<uint8_t> GetVectorFromNSString(NSString* string);
NSString* GetNSStringFromVector(const std::vector<uint8_t>& buffer);
} // namespace shell
#endif // FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_STRING_CONVERSIONS_H_