summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/cookie_manager.c14
-rw-r--r--desktop/cookie_manager.h15
-rw-r--r--desktop/global_history.c14
-rw-r--r--desktop/global_history.h15
-rw-r--r--desktop/sslcert_viewer.c7
-rw-r--r--desktop/sslcert_viewer.h8
6 files changed, 70 insertions, 3 deletions
diff --git a/desktop/cookie_manager.c b/desktop/cookie_manager.c
index f369eb068..ed39cee13 100644
--- a/desktop/cookie_manager.c
+++ b/desktop/cookie_manager.c
@@ -844,3 +844,17 @@ void cookie_manager_keypress(uint32_t key)
treeview_keypress(cm_ctx.tree, key);
}
+
+/* Exported interface, documented in cookie_manager.h */
+bool cookie_manager_has_selection(void)
+{
+ return treeview_has_selection(cm_ctx.tree);
+}
+
+
+/* Exported interface, documented in cookie_manager.h */
+int cookie_manager_get_height(void)
+{
+ return treeview_get_height(cm_ctx.tree);
+}
+
diff --git a/desktop/cookie_manager.h b/desktop/cookie_manager.h
index 724923677..b84490726 100644
--- a/desktop/cookie_manager.h
+++ b/desktop/cookie_manager.h
@@ -90,7 +90,6 @@ void cookie_manager_redraw(int x, int y, struct rect *clip,
*/
void cookie_manager_mouse_action(browser_mouse_state mouse, int x, int y);
-
/**
* Key press handling.
*
@@ -99,4 +98,18 @@ void cookie_manager_mouse_action(browser_mouse_state mouse, int x, int y);
*/
void cookie_manager_keypress(uint32_t key);
+/**
+ * Determine whether there is a selection
+ *
+ * \return true iff there is a selection
+ */
+bool cookie_manager_has_selection(void);
+
+/**
+ * Find current height
+ *
+ * \return height in px
+ */
+int cookie_manager_get_height(void);
+
#endif
diff --git a/desktop/global_history.c b/desktop/global_history.c
index 6713fcab5..3861ee27b 100644
--- a/desktop/global_history.c
+++ b/desktop/global_history.c
@@ -949,3 +949,17 @@ void global_history_keypress(uint32_t key)
treeview_keypress(gh_ctx.tree, key);
}
+
+/* Exported interface, documented in global_history.h */
+bool global_history_has_selection(void)
+{
+ return treeview_has_selection(gh_ctx.tree);
+}
+
+
+/* Exported interface, documented in global_history.h */
+int global_history_get_height(void)
+{
+ return treeview_get_height(gh_ctx.tree);
+}
+
diff --git a/desktop/global_history.h b/desktop/global_history.h
index 9d1dc4523..6e5ff1ecc 100644
--- a/desktop/global_history.h
+++ b/desktop/global_history.h
@@ -90,7 +90,6 @@ void global_history_redraw(int x, int y, struct rect *clip,
*/
void global_history_mouse_action(browser_mouse_state mouse, int x, int y);
-
/**
* Key press handling.
*
@@ -99,4 +98,18 @@ void global_history_mouse_action(browser_mouse_state mouse, int x, int y);
*/
void global_history_keypress(uint32_t key);
+/**
+ * Determine whether there is a selection
+ *
+ * \return true iff there is a selection
+ */
+bool global_history_has_selection(void);
+
+/**
+ * Find current height
+ *
+ * \return height in px
+ */
+int global_history_get_height(void);
+
#endif
diff --git a/desktop/sslcert_viewer.c b/desktop/sslcert_viewer.c
index 0f30f3f88..d9dd5c763 100644
--- a/desktop/sslcert_viewer.c
+++ b/desktop/sslcert_viewer.c
@@ -505,3 +505,10 @@ void sslcert_viewer_keypress(struct sslcert_session_data *ssl_d,
{
treeview_keypress(ssl_d->tree, key);
}
+
+
+/* Exported interface, documented in sslcert_viewer.h */
+int sslcert_viewer_get_height(struct sslcert_session_data *ssl_d)
+{
+ return treeview_get_height(ssl_d->tree);
+}
diff --git a/desktop/sslcert_viewer.h b/desktop/sslcert_viewer.h
index 4d06461b2..c5bb5c049 100644
--- a/desktop/sslcert_viewer.h
+++ b/desktop/sslcert_viewer.h
@@ -111,7 +111,6 @@ void sslcert_viewer_redraw(struct sslcert_session_data *ssl_d,
void sslcert_viewer_mouse_action(struct sslcert_session_data *ssl_d,
browser_mouse_state mouse, int x, int y);
-
/**
* Key press handling.
*
@@ -122,4 +121,11 @@ void sslcert_viewer_mouse_action(struct sslcert_session_data *ssl_d,
void sslcert_viewer_keypress(struct sslcert_session_data *ssl_d,
uint32_t key);
+/**
+ * Find current height
+ *
+ * \return height in px
+ */
+int sslcert_viewer_get_height(struct sslcert_session_data *ssl_d);
+
#endif