Apply to remove download listener before deleting _WebImpl
[framework/osp/web.git] / src / controls / FWebCtrl_Utility.h
1 //\r
2 // Open Service Platform\r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\r
5 // Licensed under the Apache License, Version 2.0 (the License);\r
6 // you may not use this file except in compliance with the License.\r
7 // You may obtain a copy of the License at\r
8 //\r
9 //     http://www.apache.org/licenses/LICENSE-2.0\r
10 //\r
11 // Unless required by applicable law or agreed to in writing, software\r
12 // distributed under the License is distributed on an "AS IS" BASIS,\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 // See the License for the specific language governing permissions and\r
15 // limitations under the License.\r
16 //\r
17 \r
18 /**\r
19  * @file                FWebCtrl_Utility.h\r
20  * @brief               The file contains the declaration of _Utility class.\r
21  *\r
22  * The file contains the declaration of _EflWebkit class.\r
23  */\r
24 #ifndef _FWEB_CTRL_INTERNAL_UTILITY_H_\r
25 #define _FWEB_CTRL_INTERNAL_UTILITY_H_\r
26 \r
27 #include <EWebKit2.h>\r
28 #include <Evas.h>\r
29 #include <FGrpBufferInfo.h>\r
30 \r
31 namespace Tizen { namespace Web { namespace Controls\r
32 {\r
33 \r
34 class _Utility\r
35 {\r
36 public:\r
37         static Evas* GetEvasFromUiApp(void);\r
38 \r
39         static result GetPixelBufferFromEvasObject(const Evas_Object* source, Tizen::Graphics::BufferInfo& bufferInfo);\r
40 \r
41         static Tizen::Base::String CreateOrigin(const Ewk_Security_Origin* pSecurityOrigin);\r
42 \r
43 private:\r
44         _Utility(void);\r
45         \r
46         virtual ~_Utility(void);\r
47 }; \r
48 \r
49 }}} // Tizen::Web::Controls\r
50 #endif \r
51 \r