1/*
2    Copyright (C) 2012 Samsung Electronics
3
4    This library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Lesser General Public
6    License as published by the Free Software Foundation; either
7    version 2.1 of the License, or (at your option) any later version.
8
9    This library is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12    Lesser General Public License for more details.
13
14    You should have received a copy of the GNU Lesser General Public License
15    along with this library; if not, write to the Free Software Foundation,
16    Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19#ifndef EWKTestView_h
20#define EWKTestView_h
21
22#include "EWKTestConfig.h"
23#include <Ecore_Evas.h>
24#include <Evas.h>
25#include <wtf/OwnPtr.h>
26#include <wtf/efl/RefPtrEfl.h>
27
28namespace EWKUnitTests {
29
30class EWKTestView {
31public:
32    enum EwkViewType {
33        SingleView = 0,
34        TiledView
35    };
36
37    EWKTestView();
38
39    Evas_Object* webView() { return m_webView.get(); }
40
41    bool init(EwkViewType testViewType = TiledView, int width = Config::defaultViewWidth, int height = Config::defaultViewHeight);
42private:
43    EWKTestView(const EWKTestView&);
44    EWKTestView& operator=(const EWKTestView&);
45
46    OwnPtr<Ecore_Evas> m_ecoreEvas;
47    RefPtr<Evas_Object> m_webView;
48};
49
50}
51
52#endif
53