X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-platform-abstraction.h;h=4723d90251cde438f39cc4c0d8da61dd138769f2;hp=5051fce31026c8b29f565c98ea56cf2c234c5539;hb=08ac586b9e0ce6ac9a0ad11a390572731c2426f1;hpb=fa6279fb2830427d5ab569ca14e6ade1557ef2fa diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.h index 5051fce..4723d90 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.h @@ -1,28 +1,29 @@ #ifndef __DALI_TEST_PLATFORM_ABSTRACTION_H__ #define __DALI_TEST_PLATFORM_ABSTRACTION_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // EXTERNAL INCLUDES -#include #include #include // INTERNAL INCLUDES +#include #include #include @@ -138,14 +139,17 @@ public: /** * @copydoc PlatformAbstraction::GetDefaultFontFamily() */ - virtual std::string GetDefaultFontFamily() const; + virtual const std::string& GetDefaultFontFamily() const; /** * @copydoc PlatformAbstraction::GetDefaultFontSize() */ - virtual const float GetDefaultFontSize() const; + virtual float GetDefaultFontSize() const; - virtual const Dali::PixelSize GetFontLineHeightFromCapsHeight(const std::string& fontFamily, const std::string& fontStyle, const CapsHeight& capsHeight) const; + /** + * @copydoc PlatformAbstraction::GetFontLineHeightFromCapsHeight() + */ + virtual Dali::PixelSize GetFontLineHeightFromCapsHeight(const std::string& fontFamily, const std::string& fontStyle, CapsHeight capsHeight) const; /** * @copydoc PlatformAbstraction::GetGlyphData() @@ -181,7 +185,7 @@ public: /** * @copydoc PlatformAbstraction::GetFontFamilyForChars() */ - virtual std::string GetFontFamilyForChars(const TextArray& charsRequested) const; + virtual const std::string& GetFontFamilyForChars(const TextArray& charsRequested) const; /** * @copydoc PlatformAbstraction::AllGlyphsSupported() @@ -196,7 +200,7 @@ public: /** * @copydoc PlatformAbstraction::GetFontList() */ - virtual std::vector GetFontList( PlatformAbstraction::FontListMode mode ) const; + virtual void GetFontList( PlatformAbstraction::FontListMode mode, std::vector& fontList ) const; /** * @copydoc PlatformAbstraction::LoadFile()