Merge "[Title] Set divided selection info layout due to rotating issue." into 2.0_beta
[profile/ivi/org.tizen.browser.git] / src / browser-window.cpp
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
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://www.tizenopensource.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
18
19 #include "browser-window.h"
20
21 Browser_Window::Browser_Window(void)
22 :
23         m_ewk_view(NULL)
24         ,m_portrait_snapshot_image(NULL)
25 #if defined(HORIZONTAL_UI)
26         ,m_landscape_snapshot_image(NULL)
27 #endif
28         ,m_ewk_view_layout(NULL)
29         ,m_parent(NULL)
30         ,m_favicon(NULL)
31         ,m_option_header_favicon(NULL)
32         ,m_secure_icon(NULL)
33         ,m_option_header_secure_icon(NULL)
34         ,m_created_by_user(EINA_FALSE)
35         ,m_is_reader(EINA_FALSE)
36 {
37         BROWSER_LOGD("[%s]", __func__);
38 }
39
40 Browser_Window::~Browser_Window(void)
41 {
42         BROWSER_LOGD("[%s]", __func__);
43         if (m_ewk_view)
44                 evas_object_del(m_ewk_view);
45         if (m_portrait_snapshot_image)
46                 evas_object_del(m_portrait_snapshot_image);
47 #if defined(HORIZONTAL_UI)
48         if (m_landscape_snapshot_image)
49                 evas_object_del(m_landscape_snapshot_image);
50 #endif
51         if (m_ewk_view_layout)
52                 evas_object_del(m_ewk_view_layout);
53         if (m_favicon)
54                 evas_object_del(m_favicon);
55         if (m_option_header_favicon)
56                 evas_object_del(m_option_header_favicon);
57 }
58