1 // Copyright (c) 2014 Intel Corporation. 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.
5 #ifndef XWALK_APPLICATION_COMMON_MANIFEST_HANDLERS_TIZEN_SPLASH_SCREEN_HANDLER_H_
6 #define XWALK_APPLICATION_COMMON_MANIFEST_HANDLERS_TIZEN_SPLASH_SCREEN_HANDLER_H_
12 #include "base/values.h"
13 #include "xwalk/application/common/application_data.h"
14 #include "xwalk/application/common/manifest_handler.h"
17 namespace application {
19 class TizenSplashScreenInfo : public ApplicationData::ManifestData {
21 TizenSplashScreenInfo();
22 virtual ~TizenSplashScreenInfo();
24 void set_src(const std::string &src) { src_ = src; }
25 const std::string& src() const { return src_; }
31 class TizenSplashScreenHandler : public ManifestHandler {
33 TizenSplashScreenHandler();
34 virtual ~TizenSplashScreenHandler();
36 bool Parse(scoped_refptr<ApplicationData> application,
37 base::string16* error) override;
38 bool Validate(scoped_refptr<const ApplicationData> application,
39 std::string* error) const override;
40 std::vector<std::string> Keys() const override;
43 DISALLOW_COPY_AND_ASSIGN(TizenSplashScreenHandler);
46 } // namespace application
49 #endif // XWALK_APPLICATION_COMMON_MANIFEST_HANDLERS_TIZEN_SPLASH_SCREEN_HANDLER_H_