e7e2457c8b093e7a4e1ff4d5c577c313894ebfb2
[platform/framework/web/web-provider.git] / src / Core / View / IRenderView.h
1 /*
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Flora License, Version 1.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://floralicense.org/license/
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16 /**
17  * @file    IRenderView.h
18  * @author  Yunchan Cho (yunchan.cho@samsung.com)
19  */
20 #ifndef I_RENDER_VIEW_H
21 #define I_RENDER_VIEW_H
22
23 #include <string>
24 #include <memory>
25 #include <Evas.h>
26
27 struct RenderInfo {
28     int width;
29     int height;
30     std::string defaultUrlParams;
31 };
32 typedef std::shared_ptr<RenderInfo> RenderInfoPtr;
33
34 class IRenderView {
35     public:
36         enum UrlType {
37             URL_TYPE_BOX,
38             URL_TYPE_PD
39         };
40         virtual void showBox(RenderInfoPtr renderInfo) = 0;
41         virtual void hideBox() = 0;
42         virtual void pauseBox() = 0;
43         virtual void resumeBox() = 0;
44         virtual void showPd(Evas_Object* pdWin, RenderInfoPtr renderInfo) = 0;
45         virtual void hidePd() = 0;
46         virtual ~IRenderView() {};
47 };
48 typedef std::shared_ptr<IRenderView> IRenderViewPtr;
49
50 #endif // I_RENDER_VIEW_H