Source code formating unification
[platform/framework/web/wrt.git] / src / view / webkit / view_logic_scheme_support.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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       view_logic_scheme_support.h
18  * @author     Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
19  * @version    1.0
20  */
21
22 #ifndef SCHEME_SUPPORT_H_
23 #define SCHEME_SUPPORT_H_
24
25 #include <dpl/wrt-dao-ro/common_dao_types.h>
26 #include <common/scheme_action_map.h>
27 #include <common/evas_object.h>
28 #include <EWebKit2.h>
29
30 class WindowData;
31 class WidgetModel;
32
33 class SchemeSupport
34 {
35   public:
36     explicit SchemeSupport(WrtDB::AppType type) : m_type(type) {}
37     bool HandleTizenScheme(const char* uri,
38                            Evas_Object* window,
39                            Evas_Object* wkView);
40     bool HandleUri(const char* uri,
41                    ViewModule::SchemeActionMap::NavigationContext context);
42
43     bool filterURIByScheme(Ewk_Policy_Decision* policyDecision,
44                            bool newWindow,
45                            WidgetModel* model,
46                            Evas_Object* window,
47                            Evas_Object* wkView);
48
49   private:
50     WrtDB::AppType m_type;
51 };
52
53 #endif /* SCHEME_SUPPORT_H_ */