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_RUNTIME_BROWSER_UI_SPLASH_SCREEN_TIZEN_H_
6 #define XWALK_RUNTIME_BROWSER_UI_SPLASH_SCREEN_TIZEN_H_
8 #include "base/files/file_path.h"
9 #include "content/public/browser/web_contents_observer.h"
10 #include "ui/compositor/layer_animation_observer.h"
27 class SplashScreenTizen : public content::WebContentsObserver,
28 public ui::ImplicitAnimationObserver {
30 SplashScreenTizen(views::Widget* host,
31 const base::FilePath& file,
32 content::WebContents* web_contents);
38 // Overridden from content::WebContentsObserver.
39 void DidFinishLoad(content::RenderFrameHost* render_frame_host,
40 const GURL& validated_url) override;
42 void DidFailLoad(content::RenderFrameHost* render_frame_host,
43 const GURL& validated_url,
45 const base::string16& error_description) override;
48 // ui::ImplicitAnimationObserver overrides:
49 void OnImplicitAnimationsCompleted() override;
52 views::Widget* widget_host_;
53 base::FilePath splash_screen_image_;
55 scoped_ptr<ui::Layer> layer_;
56 class SplashScreenLayerDelegate;
57 scoped_ptr<SplashScreenLayerDelegate> layer_delegate_;
61 DISALLOW_COPY_AND_ASSIGN(SplashScreenTizen);
66 #endif // XWALK_RUNTIME_BROWSER_UI_SPLASH_SCREEN_TIZEN_H_