add patch
[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 Ui { namespace Controls\r
32 {\r
33 class Frame;\r
34 }}}\r
35 \r
36 namespace Tizen { namespace Web { namespace Controls\r
37 {\r
38 \r
39 class _Utility\r
40 {\r
41 public:\r
42         static Evas* GetEvasFromUiApp(Tizen::Ui::Controls::Frame* pTempFrame);\r
43 \r
44         static result GetPixelBufferFromEvasObject(const Evas_Object* source, Tizen::Graphics::BufferInfo& bufferInfo);\r
45 \r
46         static Tizen::Base::String CreateOrigin(const Ewk_Security_Origin* pSecurityOrigin);\r
47 \r
48 private:\r
49         _Utility(void);\r
50         \r
51         virtual ~_Utility(void);\r
52 }; \r
53 \r
54 }}} // Tizen::Web::Controls\r
55 #endif \r
56 \r