summaryrefslogtreecommitdiff
path: root/src/browser-common-view.h
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-06-08 14:53:52 +0900
committerKim Kibum <kb0929.kim@samsung.com>2012-06-08 14:53:52 +0900
commitca861ba7b3f14b22fe5b53131c93399a87e68e90 (patch)
tree50eb42707c28bda3c8fc0ec3231e27839f17e45b /src/browser-common-view.h
parentee54cf2cefee179673d821d800ea5ec599ad0975 (diff)
downloadbrowser-ca861ba7b3f14b22fe5b53131c93399a87e68e90.tar.gz
browser-ca861ba7b3f14b22fe5b53131c93399a87e68e90.tar.bz2
browser-ca861ba7b3f14b22fe5b53131c93399a87e68e90.zip
apply FSL(Flora Software License)
Diffstat (limited to 'src/browser-common-view.h')
-rwxr-xr-xsrc/browser-common-view.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/browser-common-view.h b/src/browser-common-view.h
new file mode 100755
index 00000000..0d66635f
--- /dev/null
+++ b/src/browser-common-view.h
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.tizenopensource.org/license
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef BROWSER_COMMON_VIEW_H
+#define BROWSER_COMMON_VIEW_H
+
+#include "browser-config.h"
+#include "browser-data-manager.h"
+#include "browser-utility.h"
+
+class Browser_Data_Manager;
+class Browser_Class;
+class Browser_Window;
+
+class Browser_Common_View {
+public:
+ Browser_Common_View(void);
+ ~Browser_Common_View(void);
+
+ virtual Eina_Bool init(void) = 0;
+
+ Eina_Bool is_landscape(void);
+ Browser_Data_Manager *get_data_manager(void) { return m_data_manager; }
+ Browser_Class *get_browser(void) { return m_browser; }
+ void show_msg_popup(const char *msg, int timeout = 3);
+ void show_msg_popup(const char *title, const char *msg, int timeout);
+ void show_notify_popup(const char *msg, int timeout = 0, Eina_Bool has_control_bar = EINA_FALSE);
+ void hide_notify_popup(void);
+ std::string get_domain_name(const char *url);
+ Eina_Bool show_modal_popup(const char *msg);
+protected:
+ Evas_Object *_capture_snapshot(Browser_Window *window, float scale);
+ void _set_navigationbar_title(const char *title);
+ Eina_Bool _has_url_sheme(const char *url);
+ Eina_Bool _launch_streaming_player(const char *url, const char *cookie = NULL);
+
+
+ /* set focus to edit field idler callback to show ime. */
+ static Eina_Bool __set_focus_editfield_idler_cb(void *edit_field);
+
+ char *_trim(char *str);
+ /* For ug effect. */
+ static void __ug_layout_cb(struct ui_gadget *ug, enum ug_mode mode, void *priv);
+ static void __ug_result_cb(struct ui_gadget *ug, bundle *result, void *priv);
+ static void __ug_destroy_cb(struct ui_gadget *ug, void *priv);
+
+ static Browser_Data_Manager *m_data_manager;
+ static Evas_Object *m_win;
+ static Evas_Object *m_navi_bar;
+ static Evas_Object *m_bg;
+ static Evas_Object *m_layout;
+ static Browser_Class *m_browser;
+
+ std::vector<std::string> m_sns_name_list;
+ std::vector<std::string> m_sns_path_list;
+ std::vector<Evas_Object *> m_sns_icon_list;
+private:
+ Evas_Object *m_popup;
+ Evas_Object *m_selection_info;
+ Evas_Object *m_selection_info_layout;
+ Evas_Object *m_share_popup;
+ Evas_Object *m_share_list;
+ std::string m_share_url;
+
+ struct ui_gadget *m_ug;
+};
+#endif /* BROWSER_COMMON_VIEW_H */
+