1// Copyright 2016 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. 4 5module mojo_base.mojom; 6 7struct FilePath { 8 // In chrome, ninja have a goal that can define file_path_is_string for a set 9 // of mojom files. 10 // In android we don't have such ability ,one would have to add 11 // "--enable_feature file_path_is_string" to all targets generating pickle 12 // files, headers and sources, and also in all project including them. 13 // Faster solution was to just remove this "EnableIf" definition in libchrome. 14 // [EnableIf=file_path_is_string] 15 string path; 16 17 // This duplicates the contents of mojo_base.mojom.String16. String16 isn't 18 // used here due to typemapping dependency problems. base::FilePath is 19 // used for the typemap for both variants, but base::string16 and WTF::String 20 // are used for mojo_base.mojom.String16 typemapping. This mismatch causes 21 // problems with dependencies. 22 [EnableIf=file_path_is_string16] 23 array<uint16> path; 24}; 25