apply FSL(Flora Software License)
[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 #ifndef BROWSER_WINODW_H
18 #define BROWSER_WINODW_H
19
20 #include "browser-config.h"
21 #include <cairo.h>
22
23 class Browser_Window {
24 public:
25         Browser_Window(void);
26         ~Browser_Window(void);
27
28         /* Caution : m_ewk_view can be null even though the Browser_Window is not null.
29           * Because the m_ewk_view is destroyed and assigned to null after Browser_Class::clean_up_windows.
30           * So The null check is necessary at every usage. */
31         Evas_Object *m_ewk_view;
32
33         Evas_Object *m_portrait_snapshot_image;
34         Evas_Object *m_landscape_snapshot_image;
35
36         /* m_parent is a Browser_Window which invoke itself by javascript etc. */
37         Browser_Window *m_parent;
38         Evas_Object *m_favicon;
39         Evas_Object *m_option_header_favicon;
40         Eina_Bool m_created_by_user;
41         /* The url & title are only valid when the window is deleted
42           * because of unused case. (etc. low memory) */
43         std::string m_url;
44         std::string m_title;
45 };
46 #endif /* BROWSER_WINODW_H */
47