[Title] set passed origin data even though there is a duplicated website setting...
[profile/ivi/org.tizen.browser.git] / src / browser-window.h
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 #ifndef BROWSER_WINODW_H
20 #define BROWSER_WINODW_H
21
22 #include "browser-config.h"
23 #include <cairo.h>
24
25 class Browser_Window {
26 public:
27         Browser_Window(void);
28         ~Browser_Window(void);
29
30         /* Caution : m_ewk_view can be null even though the Browser_Window is not null.
31           * Because the m_ewk_view is destroyed and assigned to null after Browser_Class::clean_up_windows.
32           * So The null check is necessary at every usage. */
33         Evas_Object *m_ewk_view;
34
35         Evas_Object *m_ewk_view_layout;
36         Evas_Object *m_portrait_snapshot_image;
37 #if defined(HORIZONTAL_UI)
38         Evas_Object *m_landscape_snapshot_image;
39 #endif
40
41         /* m_parent is a Browser_Window which invoke itself by javascript etc. */
42         Browser_Window *m_parent;
43         Evas_Object *m_favicon;
44         Evas_Object *m_option_header_favicon;
45         Evas_Object *m_secure_icon;
46         Evas_Object *m_option_header_secure_icon;
47         Eina_Bool m_created_by_user;
48         Eina_Bool m_is_reader;
49         std::string m_reader_html;
50         std::string m_reader_base_url;
51         std::string m_url;
52         std::string m_title;
53 };
54 #endif /* BROWSER_WINODW_H */
55